Is it just me or are this.mappings acting funny?

Let me preface this: The following code is in the pseudo-constructor of my application.cfc (outside all functions) and this is the FIRST run of the application (so the application has not yet initialized)
With that being said, I wrote the following code:
<cfset this.mappings[ '/model' ] = expandPath( '/path/to/models/folder' ) />
To make sure it took, I dump it:
<cfdump var="#directoryExists( '/model' )#" />
And sure enough I get: YES.
Remove the dump and add the following code:
<cfset myConfig = new model.utils.Config() />
And CF errors out telling me it cannot find a Config.cfc.  Well, I verified.  In that 'models' folder, there is a 'utils' folder and a 'Config.cfc' in there.  If I instead change the line to read:
<cfset myConfig = new path.to.models.folder.utils.Config() />
Then it works fine.  So in essence, the mapping is not working.  I have an odd feeling that this is all due to the fact that I'm doing this in the pseudo constructor area, but if that's the natural place where you define this-scoped variables, I would think this is OK.  I know the application.cfc is LIKE a CFC, but in some ways different.
Well, if I create a this-scoped variable in some other CFC file, I can immediately reference the variable and value on the life after, even in that CFC's pseudo or in the INIT before I perform a <cfreturn this /> 
I'm trying to understand why the mapping is not working.  A problem I have is that the returntype attribute of my Config.cfc is 'model.utils.Config', and this errors out when I use the 'new path.to.models.folder.utils.Config()' method, understandably because they're different FQDNs.

I applaud Sean and his "Convention over Configuration" approach on FW/1.  And I know that FW/1 has been touted as a very simple and straight forward Framework.  There was a time a while back that I tried to learn it, found the documentation a bit lacking, and was told by its immediate community to "RTFM".  Problem was TFM wasn't making any sense to me.  When a manual does not talk in the lowest common denominator and assumes the reader has certain understandings that they currently don't, it makes for an even more frustrating experience.
But here's the thing.  I do know that "reinventing the wheel" is not the most time-effective approach.  I will admit there is something in me that is uncomfortable with using other frameworks simply on the merits that I feel it will not allow me to be as customizable in my solutions as a home-grown one.  Also, I will state that in my own attempt to make my own framework (which, to be honest with you, has been going very well), I have learned SO. FREAKING. MUCH.  Sure, I didn't learn it in the most optimal way, many times I had to back track and "refactor" code when my envisioning of the framework became more and more clear; but wow, it's one heck of a ride and a sense of accomplishment when you can get through those milestones (mostly under my own steam, but definitely not completely without the help of others like yourself who have been very helpful).
I keep repeating my mantra.  "A simple as possible, as complex as necessary."
There is a nagging voice in my head that says "These other developers don't reinvent the wheel.  You're wasting time by learning frameworks this way.  When employers want to hire, they're not going to ask if you have experience in an unpopular framework."  (good ol, self doubt, eh?)  But I think for my current situation, I'm not going to say "No" to other frameworks, I just feel I have to currently power through this custom one.
Besides, whether I use FW/1 or my own FW, my current issue is moreso about not understanding how I previously thought CF functioned.  That's something that needs to be understood despite my FW of choice.

Similar Messages

  • Did you know that verizon charges ¢50 for calls from the US to Canada?  Just dialing an area code like 604 (Vancouver, CA), will create charges at a rate of ¢50/minute.  Amazing that they can charge this much for a call to Canada.  I know they have it som

    Did you know that verizon charges ¢50 for calls from the US to Canada?  Just dialing an area code like 604 (Vancouver, CA), will create charges at a rate of ¢50/minute.  Amazing that they can charge this much for a call to Canada.  I know they have it somewhere in their contract/website.

    Did you know that verizon charges ¢50 for calls from the US to Canada?  Just dialing an area code like 604 (Vancouver, CA), will create charges at a rate of ¢50/minute.  Amazing that they can charge this much for a call to Canada.  I know they have it somewhere in their contract/website.

  • Just bought 3 ipads at the flea market over the weekend. all 3 were in unopened boxes. 2 of the ipads synced just fine and are working great. the 3rd however says it is linked to an email already. does this mean it is stolen or what

    just bought 3 ipads for the family over the weekend at the flea market. they were all in closed sealed boxes. 2 ipads synced just fine and are working great. the 3rd however is being an issue. it says that it is already linked to an email. does that mean it is stolen? all material and serial nu,bers match up everywhere. was wondering if this could be fixed by me, apple store, or should i be a good samaritian and turn it over to the police with the receipt and where and who i bought it from?

    Or it could simply have been sold by someone that didn't know enough to wipe it.
    You could check with the police, see if they have it listed as stolen.
    If you can get into the settings of that ipad you can 'erase all content and settings' and start fresh.

  • On my iPod touch (5th generation) it won't let me watch any video's off any Internet sources eg Facebook twitter and YouTube. When I click on the video it just comes up saying 'this operation could not be continued'?

    On my iPod touch (5th generation) it won't let me watch any video's off any Internet sources eg Facebook twitter and YouTube. When I click on the video it just comes up saying 'this operation could not be continued'?

    Try:
    - Reset the iOS device. Nothing will be lost
    Reset iOS device: Hold down the On/Off button and the Home button at the same time for at
    least ten seconds, until the Apple logo appears.
    - Reset all settings
    Go to Settings > General > Reset and tap Reset All Settings.
    All your preferences and settings are reset. Information (such as contacts and calendars) and media (such as songs and videos) aren’t affected.
    - Restore from backup. See:
    iOS: How to back up
    - Restore to factory settings/new iOS device.

  • I'm not sure if I am writing this in the correct area (this is my second attempt at posting a question), but I have a comment about a recent store experience in Sandusky, OH.  I am not a current Verizon customer, but I was visiting friends and we had to g

    I'm not sure if I am writing this in the correct area (this is my second attempt at posting a question), but I have a comment about a recent store experience in Sandusky, OH.  I am not a current Verizon customer, but I was visiting friends and we had to go to the store to get something taken care of.  First off, allow me to compliment the nice, new store.  Boy, its changed over the past few years ago when I was in last. My comment is mostly directed to one specific employee.  When we entered the store, we were "welcomed" by a sloppy dressed gentlemen (his clothes were probably two sizes two small), which really struck me as unusual because every other employee in the store was dressed really "casual" with nice sporty clothing and red shoes.  Either way, after being entered into the computer, the gentlemen told me to wander around or have a seat in the back and someone would be with us soon.  As soon as we walked away from the door, the gentlemen handed his "duty" off to another employee who took over welcoming people coming in.  For whatever reason, I felt glued to him as he stood out to me.  After leaving the door, he immediately went to the back of the room, hunched over a cabinet, where he stood for the next 30+ minutes playing on his phone, frowning and not speaking to anyone around him.  Again, I found this unusual because everyone else was overly friendly and smiling.  I finally decided to walk by and see what he was doing.  It appeared that he was texting someone.  He paid no attention to me whatsoever as I walked by, just continued to frown and text on his phone.  I did take not of his name tag for future reference.  His name was Justin.  I am assuming he's the manager of the location as he was just standing around while everyone else worked.  I do understand that managers aren't necessarily doing the "dirty work" of the employees, but he could have at least found some better fitting clothing (I find it hard to believe Verizon doesn't supply it), been a little friendly, pretended to be busy, and not been texting the entire time we were there.  Again, the store was great, the other employees were very helpful, but the manager seemed to be doing is own little thing and it didn't put off a good image for the rest of the store.  Just wanted to share my comments.

    lisab101,
    We appreciate you reaching out to us. We greatly appreciate the feedback that you have provided us. Please know that we will lift this up to management and the issues will be addressed.
    Thank you,
    RobinD_VZW
    Follow us on twitter @VZWSupport

  • I am planning on using my time capsule as a network and essentially an external hard drive - not just back up, is this ok?

    I am planning on using my time capsule as a network and essentially an external hard drive - not just back up, is this ok?

    Most users should use the Time Capsule for backups. This assumes that "original" copies of your data are on the computer and backups of this data are stored on the Time Capsule.
    If either the Time Capsule or the hard drive on your computer fails, there are at least copies of your important data on the other drive.
    If you are asking if you can place "original" files on the Time Capsule, do you have a plan to backup those files?
    If the Time Capsule drive has a problem....and your only copy of your important data is on the Time Capsule....you will lose everything.
    If you are asking if this is OK, the answer for most folks would be "no".
    Can you clarify if this is what you are asking?

  • TS1702 Re: Notes App. I opened Notes, then opened a particular note. It opened briefly, and then suddenly several notes, from the past two weeks, just disappeared. Is this a known glitch, and is there any way to retrieve or restore these lost notes?

    Re: Notes App. I opened Notes, then opened a particular note. It opened briefly, and then suddenly several notes, from the past two weeks, just disappeared. Is this a known glitch, and is there any way to retrieve or restore these lost notes?

    The other day i deleted my email accounts off of my ipod and only reloaded a few of them. today i looked at my notes to look at a project i had typed on my notes because i didnt have paper and pen around to write it and i didnt want to froget. I reloaded the rest of my emails in hope that everything would reappear but sadly only some of them from 2010 loaded. Recently i had update some of the files and they were like they were when i first created them there were alos ones that i had deleted long ago. There are other notes i had made that were really important to me to andi wouldn't be able to remember every single one. Help Please!

  • Whenever I click on iTunes store, it just takes me to this huge add to download the new version of iTunes. I have tried clicking the download box and downloading it, but it still will not let me past the add so I can buy music. What gives

    Whenever I click on iTunes store, it just takes me to this huge add to download the new version of iTunes. I have tried clicking the download box and downloading it, but it still will not let me past the add so I can buy music. What gives

    this is a follow up from the profane post earlier....
    i have done this twice in two other posts..
    here is my problem.. i started off trying to update itunes, it failed twice and said i needed to install manually via tools.
    the only place to get to tools is the pop up box that appears when you click check for updates.. if there is an available update then the pop up shows up with the quick time and itunes files to download. so i finally figured that out. i clicked on tools and manual update, four files were saved to a file. Apple mobile device support, another one similar, itunes, and another one i cant remember. I only downloaded the itunes file seeing as though thats all i needed to accomplish in the first place.
    so then i restarted my computer bc you need to reboot and then reopen itunes for update to take effect. once i have itunes back open i plugged in my new 5s which i am trying to sync to my computer to get all my stuff back bc i lost my previous phone over the weekend.. once i plugged the phone in an error stating i needed to unistall the apple mobile device support and itunes and then reinstall. well i dont know where those files were originally stored on my computer AND since my itunes was updated, just not the other 3 associated files, when i click check for updates it says its up to date and then pop up containing the quick time and itunes does not pop up thus i cant get back to the tools tab to manually save the 4 files again.
    so i was just going to uninstall itunes all together and then i thought well what happens if it erases all my photos apps songs etc... which would defeat the whole purpose in the first place of me trying to sync my new phone to get all my stuff back.
    so i literally have no idea what to do at this point.. if you have read this you are probably just as confused as me...

  • Are BIC mappings provided /predefined by Seeburger?

    Hello, I have a question regarding the usage of the Seeburger XI Add-On. We have a scenario where we get X.12 EDI files from a partner and need to map it to another format. If I've understood the documentation correctly the Seeburger Adapter is responsible for the mapping between the external file and the internal XI XML representation of the EDI message.
    (the mapping specified in the file adapter via CallBicXIRaBean.mappingName)
    In thread Seeburger - BIC configured as Module I found there is a specific naming format to specify this mappings. It seems to be something like See_E2X_ANSIX12_856_V4010 depending on message type, version and direction. Are these kinds of mappings predefined/delivered by Seeburger or is this something the Seeburger user has to do by itself with the BICMappingDesigner?
    Thanks.

    Hi,
    In the IBC tool under the mapping tab you will find all the standard mappings provided by seeburger. What you need to do is export it and deployee it on the XI server and then you can use that mapping.
    There are arround 50 std mapping programs which seeburger has provided for different conversion.
    If you want then please let me know.
    Thanks and Regards,
    Chirag Gohil

  • I have an iphone 5, iOS 7.0.2. Going through photos on facebook app., above on the screen, came up "saving screenshot"....but there was nothing in camera roll. What does it mean this, what's are this screenshots?

    I have an iphone 5, iOS 7.0.2. Going through photos on facebook app., above on the screen, came up "saving screenshot"....but there was nothing in camera roll. What does it mean this, what's are this screenshots?

    I agree- I apologize if I sounded skeptical and attacking. In no way did I mean it to sound that way.
    I completely agree on the software-hardware combo issue- this is why apple killed off 1G and 2G devices- because newer software revisions would never ever run well if at all on such ancient devices. can you imagine running iOS 6 on an iPhone/iPod touch 1G? That would be terrible. Let alone iOS 3 runs terrible on them and now are generally rendered useless due to newer App Store requirements (most require 4.3+ now to allow apple to kill off the older devices). forcing newer software on older hardware (apple, dell, HP,... Anything electronic this definitely applies to) will almost always yield less-than-par results. The other part is apple forcing you to upgrade by means of intentially making things obsolete. all companies do that.
    All of this factual info aside, the issue at hand with the 5 is not a software-hardware combo problem- those are most widely seen with the major revisions. then again, this isn't the first time apple has gotten caught up in battery drain snafus (even iOS 5 was plagued with this as well- and now there are some people desperate to roll back but can't). it basically waters it down to the point where keeping the stock software will always yield the best results even though newer versions provide better features- it all depends on whether or not the person deems the added features are worth a performance hit.
    PS. I'm still at 100%- and I've been using it periodically throughout the day. your combo worked for you, but didn't for me. And may or may not work for others- As the tech world would say, mileage may vary.
    PSS. What model/carrier do you have? Just wondering.

  • I have an existing ipod that I use with my mac. I am trying to connect an additional ipod to it but when I try and register, it just brings up the existing info. I don't want to lose the original info or library - just create new for this device. Pls help

    I have an existing ipod that I use with my mac. I am trying to connect an additional ipod to it but when I try and register, it just brings up the existing info. I don't want to lose the original info or library - just create new for this device. Pls help...

    We are starting from the beginning like its a new ipod starts out asking language, country,location services,choose a network,and when we get to "setup ipod touch  " there are 3 options 1..setup as new ipod, 2.restore from ipod backup 3 restore from itunes backup and when we hit setup as new ipod and click next it comes up with sign in with apple id or create a free apple id  we clicked create a free apple id....then comes up with bday,1st name last name, use your current email address, get a free icloud email address or change email address and THIS is where we have problems....if we hit change email address it means that sis's stuff goes under his name and moves all her stuff to this older ipod which the brother does not want. sorry this is so long but its the only way I knew to do it.

  • Why isn't my last import saving? I can import the pictures from the memory card, but if I close out iPhoto the just "imported photos" are nowhere to be found.  Please help

    Why isn't my last import saving? I can import the pictures from the memory card, but if I close out iPhoto the just "imported photos" are nowhere to be found.  Please help

    Option 1
    Back Up and try rebuild the library: hold down the command and option (or alt) keys while launching iPhoto. Use the resulting dialogue to rebuild. Choose to Rebuild iPhoto Library Database from automatic backup.
    If that fails:
    Option 2
    Download iPhoto Library Manager and use its rebuild function. This will create a new library based on data in the albumdata.xml file. Not everything will be brought over - no slideshows, books or calendars, for instance - but it should get all your albums and keywords back.
    Because this process creates an entirely new library and leaves your old one untouched, it is non-destructive, and if you're not happy with the results you can simply return to your old one. .
    Regards
    TD

  • Has anyone been able to re-download artist lessons yet? or has Apple still just ignored us about this?

    Has anyone been able to re-download artist lessons yet? or has Apple still just ignored us about this?

    Yes, my first post is all about how darn iffy the adaptors are and I have two of them to return now.
    I question your answer because I am betting that four drives that are in one enclosure NOT all RAIDed together as one drive, but as four separate drives that those four drive will count as four devices. The daisy chain that I had going had eight drives in TWO quad boxes, four drives in TWO dual drives and another drive in a single enclosure. A total of five “devices” if you will, but also a total of 13 drives that were usually in this daisy chain.
    Both of the Apple branded Thunderbolt to FireWire adaptors chocked BIG TIME on this and it works no problem on my older MBP. You basically can not use a new Mac when you are connected to a daisy chain like this!
    Just checked the Apple website and indeed, I can get a new MBP with FireWire 800, just not with the Retina display! I wish that I would have known this five months ago before this all started!

  • Why won't time machine open up to the page where it gives me the option to back up my mac onto my external passport? It just brings me to this page where it gives me the option to scroll through my tabs.

    My time machine application was working fine earlier, but when I clicked it again it just led me to this. How do I open up the page where it gives me the option to back up my mac? and how do I choose certain files to back up? Because I don't want to back up my whole mac, just certain files.

    You are clicking on the wrong TM icon. Or not clicking it correctly.
    Use the TM icon in the top menu area. You can always open TM preferences from System Preferences.
    You can also right click OR Control Click on the TM icon in the dock.. and go to the same place.
    Ie open TM preferences.
    But it is not so easy as you seem to think to setup TM to backup this and not back up that.
    See pondini for info on how to use TM.
    http://pondini.org/TM/FAQ.html
    See Q10 for excluding items.
    And info on how to do backups manually.. just turn off auto backups.. you can start them manually when you like.

  • Are this OSPF LSA relate to each other ???

    OSPF neighbor relationships progress
    1) Down State
    2) Init State
    OSPF routers send Type 1 (hello)
    3) Two-Way State
    4) ExStart State (Type 2)
    5) Exchange State
    6) Loading State (type 3)
    7) Full Adjacency
    ALSO,
    OSPF Area Types also use LSA exchange between routers or area
    Type 1 – generate by each router for each area it belongs to, flood only within particular area, describe the states of the router’s link to the area.
    Type 2 – generate by DR in multi-access networks, flood only within the area that contain the network, describe the set of routes attched to a particular network.
    Type 3 – Orgin by ABR, flood throughout the backbone area to other ABRs, describe the links between ABR and the internal routes of a local area.
    Type 4 – Orgin by ABR, flood throughout the backbone area to other ABRs, describe routes to ASBRs.
    Type 5 – Orgin by ASBR, describe the routes to destinations external to the AS, flood throughout an OSPF AS.
    The questions are this LSA relate to each other or it just happen like this ???

    Hi Friend,
    There is no relation between the type of LSA (1,2,3,4,5,7) exchanged between the routers within an area and between the areas to exchange the link state information and the packets which are used to form an ospf neigh and adjancy relationship.
    Taking an example LSA 5 which is used to carry the external route information into an area is not at all related to type 5 LSA which you are talking for formaing a naighbor relationship.
    I think the neighbor relationship is formed using hello packet, dd packet and LSU and LSR packets which you may name as type of LSA's. but these are not at all related to LSA's which are used to carry route information between the areas and within areas.
    HTH
    Ankur

Maybe you are looking for