Welcome Guest, Not a member yet? Register   Sign In
Custom helper not loading

Yeah i re-read the user guide on helpers and saw the correct syntax and it corrected the issue. Though I think I might be trying to go about this all wrong... I know this is an MVC but thus far all the information i'm seeing is done via VC havent seen anything from the M. Thanks for your answer on it even though I had already figured it out.

So initially to get myself started (both learning CI and learning more than the basics of jQuery) I figured I'd work on an administration panel which would include auto-redirecting to the login if you're not currently logged in or your login is expired...

So let me back this up and see if i'm doing this correctly thus far, I havent gotten very far with it as of yet...

I've got my CI installation in the root of a subdomain on one of my other domains just to try it out. I have the .htaccess set to remove the index.php from the URL and I have SEO friendly URL's in place...

in the application/controllers folder I have a subfolder named adm which makes it so i can go to http://name.domain.com/adm and have the welcome.php display. I also have the subfolder adm in the application/views folder giving me a spot to put all the 'views' of the administration panel.

So initially when you first open your browser and go to the admin panel it'll take you directly to the login page, which will also have a jquery tab element on it just in case you forgot your admin password.

Now here is some issues i could have... I plan on utilizing some of the structure that I used in smarty when I used that, and that would be having a simple constructor.php in the view which would house the header, side wrappers and the footer in the one file. then each individual page will need to be able to inject itself (using smarty it was: $smarty->assign('something', $something); ) so that it will take the place of a hidden div (if there is a better way to do it without having tons of files i'd be willing to listen to that as well)...

Then once I get the layout looking right as rain, I guess the only real portion left would be figuring out how to get the submit button to trigger jquery to either reset the password and send an email to them with the new password (for the forgotten password script) then redirect or refresh to the page stating thats the case... or check login information and either redirect back to http://name.domain.com/adm from http://name.domain.com/adm/login

The jquery ajax usage i think i could use a lot of help with in conjunction with CI as i'm used to smarty, but even with that i've only used the prototype.js and want to get away from that since jQuery looks more robust and what not...

I think there were quite a bit of questions in there -- if anyone answers them and/or includes some known working code samples (dont need it written for me, just samples of how it works and such) i appreciate it.

Messages In This Thread
Custom helper not loading - by El Forum - 08-06-2011, 02:14 PM
Custom helper not loading - by El Forum - 08-06-2011, 05:22 PM
Custom helper not loading - by El Forum - 08-06-2011, 06:40 PM
Custom helper not loading - by El Forum - 08-06-2011, 08:35 PM

Theme © iAndrew 2016 - Forum software by © MyBB