Re: Plug-in Models
I had similiar problems. So I started to develop nearly everything as a plugin. If your code is based on generic programmed plugins you can share the models as you wish between them. You can also easily configure each plugin itself by using the PluginHandler Component from the bakery.cakephp.org It'´s not the direct solution to your problem but an alternative maybe :-) On 11 Okt., 02:59, "Dave Maharaj" wrote: > That gave me an error Undefined offset [0]. > > Maybe I was unclear when I originally asked, so maybe try again. I need my > User model in app/models to be shared with the plugin. > I could move User and make MemberUser model in plugin folder but then > sharing Country model? User right now belongs to Country no big deal but > Country is used in various places over the site so can UserMember access > Country if moved? > > I have as I said a registrations, passwords, users, confirmations > controllers right now all using User (they do not have a table since its all > User data) but I hate having everything all bunched in with the other > controller so I wanted to dump it all into a plugin folder. > > Thanks again-Original Message- > From: Miles J [mailto:mileswjohn...@gmail.com] > Sent: October-08-10 6:46 PM > To: CakePHP > Subject: Re: Plug-in Models > > That is how you use it. If you want to use plugin models within a > plugin, you must define the plugin. > > public $uses = array('User' => array('className' => 'Member.User')); Check out the new CakePHP Questions site http://cakeqs.org and help others with their CakePHP related questions. You received this message because you are subscribed to the Google Groups "CakePHP" group. To post to this group, send email to cake-php@googlegroups.com To unsubscribe from this group, send email to cake-php+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/cake-php?hl=en
Re: Auth's login is not working at all, nor displaying errror
One small suggestion. Are you using 1.3? If so, refer to $this->Session rather than $session. At least you might get a message that could help track down the problem. Jeremy Burns Class Outfit jeremybu...@classoutfit.com http://www.classoutfit.com On 11 Oct 2010, at 01:18, Farhanx wrote: > > one correction i have made it here > > $this->Auth->fields = array('username' => 'k_userid', 'password' => > 'k_passw'); > > but still same thing happening > > i tried to dump the data information inside login but it came as NULL. > Does it mean my form is not even posting data information?? > > function login() > { > // No form processing needed, Auth does it automatically >var_dump($this->data); > } > > Check out the new CakePHP Questions site http://cakeqs.org and help others > with their CakePHP related questions. > > You received this message because you are subscribed to the Google Groups > "CakePHP" group. > To post to this group, send email to cake-php@googlegroups.com > To unsubscribe from this group, send email to > cake-php+unsubscr...@googlegroups.com For more options, visit this group at > http://groups.google.com/group/cake-php?hl=en Check out the new CakePHP Questions site http://cakeqs.org and help others with their CakePHP related questions. You received this message because you are subscribed to the Google Groups "CakePHP" group. To post to this group, send email to cake-php@googlegroups.com To unsubscribe from this group, send email to cake-php+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/cake-php?hl=en
Re: 15 Minute Blog Tutorial - not quite 15 minutes
Thanks Joni - working MUCH better now! Jeff On Oct 10, 3:11 pm, jsalonen wrote: > The URL you should access ishttp://click-2-run.com/cakephp/app/posts/index > - without .php file name extension. > > In CakePHP you're accessing actions defined in controller, not files. > For this reason there are no file name extensions. They can be enabled > in the router configuration > though:http://book.cakephp.org/view/952/File-extensions > > On Oct 10, 9:46 pm, Jeff wrote: > > > > > Not sure why, but I'm the lucky guy that gets to spend WA more > > than 15 minutes on a 'simple' demo. Admittedly I'm a noob, but one > > would think that something this basic should work. > > > I dutifully copied and pasted the code from the tutorial examples in > > to php files and uploaded them to my webserver, then I went to the > > url > > as described in the tutorial - and Cake doesn't seem to be the least > > bit interested. I know the file is in the right place (per the > > instructions in the tutorial), but here's what I get: > > > Missing Method in PostsController > > > Error: The action index.php is not defined in controller > > PostsController > > > Error: Create PostsController::index.php() in file: app/controllers/ > > posts_controller.php. > > > class PostsController extends AppController { > > > var $name = 'Posts'; > > > function index.php() { > > > } > > > } > > > ?> > > > Notice: If you want to customize this error message, create app/ > > views/ > > errors/missing_action.ctp. > > > So that's all well and good - it wants the basic PostsController > > class > > to extend AppController ... but here's the contents of my file in > > exactly the right place: > > > > class PostsController extends AppController { > > var $name = 'Posts'; > > function index() { > > $this->set('posts', $this->Post->find('all')); > > } > > function view($id = null) { > > $this->Post->id = $id; > > $this->set('post', $this->Post->read()); > > } > > > } > > > ?> > > > The test project is located athttp://Click-2-Run.com/cakephp/app/ > > > The URL I entered to try the project out > > ishttp://click-2-run.com/cakephp/app/posts/index.php > > > ... and yes, I checked - the .htaccess files WERE uploaded when I > > unzipped and uploaded Cake to the server. > > > So now what? Anyone with help ... please? Check out the new CakePHP Questions site http://cakeqs.org and help others with their CakePHP related questions. You received this message because you are subscribed to the Google Groups "CakePHP" group. To post to this group, send email to cake-php@googlegroups.com To unsubscribe from this group, send email to cake-php+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/cake-php?hl=en
Re: Is this a do-able Cake project?
Thanks for the help Cricket! The 'fiddly' stuff got resolved in another thread and as it turns out, I had everything correct but I wasn't calling with the proper URI. It's coming along nicely, but I'm sure I have LOTS of reading to do and LOTS of experimenting (failing) to work my way through before I can start cookin' with much proficiency. Jeff On Oct 10, 6:01 pm, cricket wrote: > On Sun, Oct 10, 2010 at 1:21 PM, Jeff wrote: > > Thanks Renato, > > > After posting this question (before your reply) I _did_ see that > > wizard component ... that was encouraging. > > Keep in mind, though, that that component is quite old now. I don't > know if it's been updated for 1.3.x, although maybe that's the change > Renato was referring to. In any case, be sure to study up on how > components work and also check the 1.2.x to 1.3.x migration guide: > > http://book.cakephp.org/view/1561/Migrating-from-CakePHP-1-2-to-1-3 > > > I'm working my way through the 15 minute blog tutorial - which has now > > taken about an hour and I still haven't seen anything work right on > > the screen. That's DIScouraging. > > There are some fiddly things to deal with at first but all that stuff, > once resolved, shouldn't be an issue again. > > > This is almost certainly because I don't have cakephp in the domain > > root, because I can't dedicate a domain just to fooling around with > > Cakephp ... so the framework keeps telling me I don't have what I > > need, even though I've done everything the tutorial has told me to do > > and I have made sure it's all uploaded. > > Are you working remotely or locally? If the former, can you create a > subdomain? Working locally is pretty straightforward once you have > Apache installed. Just create a virtual host and an entry in > /etc/hosts and you should be good to work > fromhttp://my_cake_project.my_machine.name. I find there's never any > reason to use localhost, for example. Check out the new CakePHP Questions site http://cakeqs.org and help others with their CakePHP related questions. You received this message because you are subscribed to the Google Groups "CakePHP" group. To post to this group, send email to cake-php@googlegroups.com To unsubscribe from this group, send email to cake-php+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/cake-php?hl=en
RE: Plug-in Models
That gave me an error Undefined offset [0]. Maybe I was unclear when I originally asked, so maybe try again. I need my User model in app/models to be shared with the plugin. I could move User and make MemberUser model in plugin folder but then sharing Country model? User right now belongs to Country no big deal but Country is used in various places over the site so can UserMember access Country if moved? I have as I said a registrations, passwords, users, confirmations controllers right now all using User (they do not have a table since its all User data) but I hate having everything all bunched in with the other controller so I wanted to dump it all into a plugin folder. Thanks again -Original Message- From: Miles J [mailto:mileswjohn...@gmail.com] Sent: October-08-10 6:46 PM To: CakePHP Subject: Re: Plug-in Models That is how you use it. If you want to use plugin models within a plugin, you must define the plugin. public $uses = array('User' => array('className' => 'Member.User')); Check out the new CakePHP Questions site http://cakeqs.org and help others with their CakePHP related questions. You received this message because you are subscribed to the Google Groups "CakePHP" group. To post to this group, send email to cake-php@googlegroups.com To unsubscribe from this group, send email to cake-php+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/cake-php?hl=en
Re: Auth's login is not working at all, nor displaying errror
one correction i have made it here $this->Auth->fields = array('username' => 'k_userid', 'password' => 'k_passw'); but still same thing happening i tried to dump the data information inside login but it came as NULL. Does it mean my form is not even posting data information?? function login() { // No form processing needed, Auth does it automatically var_dump($this->data); } Check out the new CakePHP Questions site http://cakeqs.org and help others with their CakePHP related questions. You received this message because you are subscribed to the Google Groups "CakePHP" group. To post to this group, send email to cake-php@googlegroups.com To unsubscribe from this group, send email to cake-php+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/cake-php?hl=en
Re: Even though $primaryKey is specified, I still get an error
Alright, I got something working: Model Controller class ProjectsController extends AppController { var $name = 'Projects'; function manage($id=0){ $this->Project->id = $id; $this->set('project', $this->Project->read()); } } ?> View ".$project['Project']['adress'].""; ?> However, I was initially trying this in my view: echo $this->data['Projects']['project_id']; or echo $this->data['Project']['project_id']; and I was getting nothing. Check out the new CakePHP Questions site http://cakeqs.org and help others with their CakePHP related questions. You received this message because you are subscribed to the Google Groups "CakePHP" group. To post to this group, send email to cake-php@googlegroups.com To unsubscribe from this group, send email to cake-php+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/cake-php?hl=en
Auth's login is not working at all, nor displaying errror
Hi, I am new in cake and trying to implement user auth functionality but i am stuck in a strange error for 3-4 hours. I have created my user controller like below. As i understand i dont need to do manual password and id checking inside Login function and it has to do automatically. But every time when my form hits it returns me back to the same login page and it never show error message inside session's auth variable. Please help me what should i do? ///--- USER CONTROLLER class KUsersController extends AppController { var $name = 'KUsers'; var $components = array('Auth', 'Recaptcha','RequestHandler','Email');//this auth has some requirement we gotta learn it var $helpers = array('Session','Ajax','Javascript'); function beforeFilter() { $this->Auth->userModel = 'KUsers'; $this->Auth->loginAction = array('admin' => false,'controller' => 'KUsers', 'action' => 'login'); $this->Auth->loginRedirect = array('controller' => 'KUsers', 'action' => 'dashboard'); $this->Auth->loginError = 'No username and password was found with that combination.'; $this->Auth->logoutRedirect = '/'; $this->Auth->fields = array('k_userid' => 'k_userid', 'k_passw' => 'k_passw'); $this->Auth- >allow('register','recaptcha','emailExist','accountNotice');//this will let me allow which function publically available } function login() { } function dashboard() { } function logout() { $this->redirect($this->Auth->logout()); } // LOGIN View check('Message.auth')) $session->flash('auth');?> Flash("auth"); ?> Form->create('KUser',array('action' => 'login'));?> UserIDForm->input('k_userid',array( 'label' => '','id'=>'k_userid'));?> PasswordForm->input('k_passw',array( 'label' => '','type' => 'password','id'=>'k_passw'));?> Check out the new CakePHP Questions site http://cakeqs.org and help others with their CakePHP related questions. You received this message because you are subscribed to the Google Groups "CakePHP" group. To post to this group, send email to cake-php@googlegroups.com To unsubscribe from this group, send email to cake-php+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/cake-php?hl=en
Re: Help with converting user generated content into cakephp friendly code
The "users" will be administrators..not any-old-person who wants to create pages. I'm open to *not* including the php...as obviously this isn't very secure. I guess what i'm asking, is where would i throw a regular expression/replace to take a comment such as to replace with the correct cake code? beforeRender? And where is the view output stored? On Mon, Oct 11, 2010 at 8:46 AM, cricket wrote: > On Sun, Oct 10, 2010 at 9:18 AM, Greg Skerman wrote: > > Hi, > > > > I'm writing a little content manager, and for this i've decided to > rewrite > > the pages controller so that it is database driven. > > > > I'm using TinyMCE and markitup as the editors to allow content to be > > created. > > > > My issue is, how do I go about getting cakephp's automagic elements > working > > with this? obviously when a user creates an img tag, I would like to > convert > > this to a HTMLHelper tag to get around relative paths etc, > > Use img tags with absolute paths and be done with it. > > > but I also want > > to be able to allow the users to include elements and other helper code > in > > their pages. > > Now you're looking for trouble. > > > Is it a case of parsing the stored page and converting it on the fly to > > include these elements, or is there a way to safely store and later > evaluate > > saved php code? > > How much do you trust these users? > > Check out the new CakePHP Questions site http://cakeqs.org and help others > with their CakePHP related questions. > > You received this message because you are subscribed to the Google Groups > "CakePHP" group. > To post to this group, send email to cake-php@googlegroups.com > To unsubscribe from this group, send email to > cake-php+unsubscr...@googlegroups.comFor > more options, visit this group at > http://groups.google.com/group/cake-php?hl=en > Check out the new CakePHP Questions site http://cakeqs.org and help others with their CakePHP related questions. You received this message because you are subscribed to the Google Groups "CakePHP" group. To post to this group, send email to cake-php@googlegroups.com To unsubscribe from this group, send email to cake-php+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/cake-php?hl=en
Re: Is this a do-able Cake project?
On Sun, Oct 10, 2010 at 1:21 PM, Jeff wrote: > Thanks Renato, > > After posting this question (before your reply) I _did_ see that > wizard component ... that was encouraging. Keep in mind, though, that that component is quite old now. I don't know if it's been updated for 1.3.x, although maybe that's the change Renato was referring to. In any case, be sure to study up on how components work and also check the 1.2.x to 1.3.x migration guide: http://book.cakephp.org/view/1561/Migrating-from-CakePHP-1-2-to-1-3 > I'm working my way through the 15 minute blog tutorial - which has now > taken about an hour and I still haven't seen anything work right on > the screen. That's DIScouraging. There are some fiddly things to deal with at first but all that stuff, once resolved, shouldn't be an issue again. > This is almost certainly because I don't have cakephp in the domain > root, because I can't dedicate a domain just to fooling around with > Cakephp ... so the framework keeps telling me I don't have what I > need, even though I've done everything the tutorial has told me to do > and I have made sure it's all uploaded. Are you working remotely or locally? If the former, can you create a subdomain? Working locally is pretty straightforward once you have Apache installed. Just create a virtual host and an entry in /etc/hosts and you should be good to work from http://my_cake_project.my_machine.name. I find there's never any reason to use localhost, for example. Check out the new CakePHP Questions site http://cakeqs.org and help others with their CakePHP related questions. You received this message because you are subscribed to the Google Groups "CakePHP" group. To post to this group, send email to cake-php@googlegroups.com To unsubscribe from this group, send email to cake-php+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/cake-php?hl=en
Re: Fresh install, home page (redirect) error
On Sun, Oct 10, 2010 at 4:54 AM, i...@fijnmedia.nl wrote: > Hello, > > The website runs on a shared hosting platform. Since a week the home > page doesn't work properly. The other pages works as normal. > > I have also tried a fresh install from the cakephp website and I got > still > the same error: > -- > Error: Redirect:Controller could not be found. > > Error: Create the class Redirect:Controller below in file: app/ > controllers/redirect:controller.php > > class Redirect:Controller extends AppController { > > var $name = 'Redirect:'; > } > > ?> > - > > And here my cakephp install: > http://cake.fijnmedia.nl/ > > Maybe its something with the htaccess / dispatcher or something, I > really don't know. Cake is throwing up that error because you've tried to redirect to a URL beginning with "/redirect". At least, that's my best guess. So, what does your controller code look like?Or maybe it's something in AppController::beforeFilter(). Check out the new CakePHP Questions site http://cakeqs.org and help others with their CakePHP related questions. You received this message because you are subscribed to the Google Groups "CakePHP" group. To post to this group, send email to cake-php@googlegroups.com To unsubscribe from this group, send email to cake-php+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/cake-php?hl=en
Re: Problem with Html Helper basepath in MAMP
using arrays unfortunately does not fix the problem. I changed the code to: Html- >url(array('controller'=>'albums','action'=>'show')); echo "url_test: " . $this->Html- >url(array('controller'=>'albums','action'=>'show'),true); ?> I still get the same results as described it in my first post. Any other ideas? Best Heiko On 10 Okt., 21:54, euromark wrote: > always use arrays for internal links > > On 10 Okt., 17:35, roktok wrote: > > > I am struggling with Html helper in cake 1.3. The url method seems to > > reference different relative roots: > > > > echo "app: " . APP; > > echo "www_root: " . WWW_ROOT; > > echo "images: " . IMAGES; > > echo "url_test_relative: " . $this->Html->url('/albums/show/'); > > echo "url_test_absolute: " . $this->Html->url('/albums/show/',true); > > ?> > > > In MAMP I get the following paths: > > > app: /Applications/MAMP/htdocs/tunds/ > > www_root: /Applications/MAMP/htdocs/tunds/webroot/ > > images: /Applications/MAMP/htdocs/tunds/webroot/img/ > > url_test_relative: /tunds/albums/show/ > > url_test_absolute:http://localhost:/tunds/albums/show/ > > > When I use the script online, I get the following paths instead: > > > app: /www/htdocs/w00c9135/htdocs/tunds/ > > www_root: /www/htdocs/w00c9135/htdocs/tunds/webroot/ > > images: /www/htdocs/w00c9135/htdocs/tunds/webroot/img/ > > url_test_relative: /albums/show/ > > url_test_absolute:http://tunds.server.com/albums/show/ > > > I expected to get the same relative url in MAMP ('/albums/show/'), but > > it generates ('/TUNDS/albums/show/"), while all the other paths seems > > to work fine. How can I fix this issue? > > > Thank you all. > > Best Heiko Check out the new CakePHP Questions site http://cakeqs.org and help others with their CakePHP related questions. You received this message because you are subscribed to the Google Groups "CakePHP" group. To post to this group, send email to cake-php@googlegroups.com To unsubscribe from this group, send email to cake-php+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/cake-php?hl=en
Re: Help with converting user generated content into cakephp friendly code
On Sun, Oct 10, 2010 at 9:18 AM, Greg Skerman wrote: > Hi, > > I'm writing a little content manager, and for this i've decided to rewrite > the pages controller so that it is database driven. > > I'm using TinyMCE and markitup as the editors to allow content to be > created. > > My issue is, how do I go about getting cakephp's automagic elements working > with this? obviously when a user creates an img tag, I would like to convert > this to a HTMLHelper tag to get around relative paths etc, Use img tags with absolute paths and be done with it. > but I also want > to be able to allow the users to include elements and other helper code in > their pages. Now you're looking for trouble. > Is it a case of parsing the stored page and converting it on the fly to > include these elements, or is there a way to safely store and later evaluate > saved php code? How much do you trust these users? Check out the new CakePHP Questions site http://cakeqs.org and help others with their CakePHP related questions. You received this message because you are subscribed to the Google Groups "CakePHP" group. To post to this group, send email to cake-php@googlegroups.com To unsubscribe from this group, send email to cake-php+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/cake-php?hl=en
Re: when I pass a variable to controller function, JQuery goes crazy
On Sun, Oct 10, 2010 at 7:24 AM, Tomfox Wiranata wrote: > Hi, > > this process is about editing a product page that the user created. > > to enable editing I provide a url and pass the id of that product to > my controlllers "edit" function, so cake knows what product data to > retrieve: > > link in my view: > echo $html->image("icons/edit.gif", array( > "alt" => "edit", > 'url' => array('controller' => 'products', > 'action' => 'edit', > $product[Product][id]) > )); > > controller function: > function edit() > { > $this->Product->id = 66; > $this->set('myproduct', $this->Product->read()); > } > > now in my "edit.ctp" view i can retrieve the data from the database of > that product, because i passed the id. > > > BUT JQuery wont work then. for example: > > images dont get rendered anymore in my edit.ctp view. this one I use > to open a css popup. i dont see the icon, but there is still a link. > src="../img/icons/add.png" /> What do images have to do with JQuery? > OR > calling a controllers function with jquery doesnt work anymore > $('#title_content').load('processtitle', {data: > title_content}).fadeIn('slow'); Does AJAX figure into this somehow? If so: http://docs.jquery.com/Frequently_Asked_Questions#Why_do_my_events_stop_working_after_an_AJAX_request.3F > As soon as I dont pass the id like this > 'url' => array('controller' => 'linkables', 'action' => 'edit') I presume that having the id hard-coded (66) in the earlier example was due to you trying to debug this. However, the function itself is not defined as taking any parameters. So, what does the function actually look like? And, when you DO pass an id, what does the form action look like? Have you tried logging $this->params? Or $this->data? Check out the new CakePHP Questions site http://cakeqs.org and help others with their CakePHP related questions. You received this message because you are subscribed to the Google Groups "CakePHP" group. To post to this group, send email to cake-php@googlegroups.com To unsubscribe from this group, send email to cake-php+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/cake-php?hl=en
Re: Type of association?
On Sat, Oct 9, 2010 at 6:45 PM, jwerd wrote: > I have table that needs to store two foreign keys and an extra param > that will just be a value associated. > > So I have a joining table: > > fk_id > fk2_id > value > > fk is just an example, it's to indicate it comes from another table > that will have other fields like name or title or whatever. > > what kind of association am I creating to tables fk and fk2? It looks like HABTM but you haven't supplied much info. Plus, what does tha data you're trying to save look like? Also, you should add a PK to this join table. I can't remember if that's necessary in order to have extra fields in Cake's HABTM tables but, intuitively, it seems appropriate. Check out the new CakePHP Questions site http://cakeqs.org and help others with their CakePHP related questions. You received this message because you are subscribed to the Google Groups "CakePHP" group. To post to this group, send email to cake-php@googlegroups.com To unsubscribe from this group, send email to cake-php+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/cake-php?hl=en
Re: creating a jpeg from a layout
i know that it's possible with linux so if you have access to exec() commands and the neccessary tools are installed that should work usually some kind of screenscraper On 10 Okt., 23:38, Tomfox Wiranata wrote: > yes. jpg would be it. it needs to be flexible enough to integrate it > in other graphic design, what you cant do with pdf > > On 10 Okt., 21:55, euromark wrote: > > > sure you want a jpg? and not a pdf? > > > On 10 Okt., 17:17, Tomfox Wiranata wrote: > > > > hi everyone, > > > > lets say I have a view, showing some text and pictures. > > > > is it possible to create a jpg from that view? > > > > is there a helper? a tutorial? appreciate your help. thank you!! Check out the new CakePHP Questions site http://cakeqs.org and help others with their CakePHP related questions. You received this message because you are subscribed to the Google Groups "CakePHP" group. To post to this group, send email to cake-php@googlegroups.com To unsubscribe from this group, send email to cake-php+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/cake-php?hl=en
Re: creating a jpeg from a layout
yes. jpg would be it. it needs to be flexible enough to integrate it in other graphic design, what you cant do with pdf On 10 Okt., 21:55, euromark wrote: > sure you want a jpg? and not a pdf? > > On 10 Okt., 17:17, Tomfox Wiranata wrote: > > > hi everyone, > > > lets say I have a view, showing some text and pictures. > > > is it possible to create a jpg from that view? > > > is there a helper? a tutorial? appreciate your help. thank you!! Check out the new CakePHP Questions site http://cakeqs.org and help others with their CakePHP related questions. You received this message because you are subscribed to the Google Groups "CakePHP" group. To post to this group, send email to cake-php@googlegroups.com To unsubscribe from this group, send email to cake-php+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/cake-php?hl=en
Re: 15 minute Blog Tutorial? Really?
Fran - Gracias, esta perfecto! (SP?) Jeff On Oct 10, 4:02 pm, Fran Iglesias wrote: > Hi Jeff > El 10/10/2010, a las 22:58, Jeff escribió: > > > Debug already IS '2' > > >http://click-2-run.com/cakephp/posts/index.php > > Try > > http://click-2-run.com/cakephp/posts/index > > without the extension > > The url is /controller/action and action name in the controller doesn't > include extensions. > --- > Fran Iglesias http://cakephpilia.blogspot.com Check out the new CakePHP Questions site http://cakeqs.org and help others with their CakePHP related questions. You received this message because you are subscribed to the Google Groups "CakePHP" group. To post to this group, send email to cake-php@googlegroups.com To unsubscribe from this group, send email to cake-php+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/cake-php?hl=en
Re: 15 minute Blog Tutorial? Really?
Hi Jeff El 10/10/2010, a las 22:58, Jeff escribió: > Debug already IS '2' > > http://click-2-run.com/cakephp/posts/index.php Try http://click-2-run.com/cakephp/posts/index without the extension The url is /controller/action and action name in the controller doesn't include extensions. --- Fran Iglesias http://cakephpilia.blogspot.com Check out the new CakePHP Questions site http://cakeqs.org and help others with their CakePHP related questions. You received this message because you are subscribed to the Google Groups "CakePHP" group. To post to this group, send email to cake-php@googlegroups.com To unsubscribe from this group, send email to cake-php+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/cake-php?hl=en
Re: 15 minute Blog Tutorial? Really?
Debug already IS '2' http://click-2-run.com/cakephp/posts/index.php On Oct 10, 3:38 pm, "Ma'moon" wrote: > And also please raise the debug level to 2 (edit app/config/core.php file > and alter the value of 'debug' to 2) and post the errors that you see in > there > > > > On Sun, Oct 10, 2010 at 4:20 PM, Jeff wrote: > > I'm not trying to be argumentative here ... but we're already beyond > > my tolerance for 'extra stuff' (kabuki dance). Mod-rewrite (I now > > recall reading about this previously in the docs) IS working fine as I > > do have the cake image in the upper left corner and CSS is applied to > > warnings and things checking out OK on the main index page. > > > So ... all the 'file shifters' seem to be doing what they're supposed > > to do but that still doesn't explain the framework not recognizing > > files uploaded to the server. > > > Now what? > > > On Oct 10, 3:13 pm, "Ma'moon" wrote: > > > To check if mod-rewrite is enabled check the main page of your site ( > >http://example.com) if the default theme of the site went fine (CSS loaded > > > correctly on the page) then that would indicate the mod-rewrite is > > enabled. > > > > Cake's folder/file structure is pretty strait forward and most cases you > > > don't need to alter it, most of your work will be jumping between 3 > > folders > > > (controllers, models, and views) contained inside the app folder, trust > > me, > > > no need for kabuki dance :-) > > > > On Sun, Oct 10, 2010 at 4:04 PM, Jeff wrote: > > > > How would I check mod-rewrite? > > > > > .htaccess DOES exist in the cakephp folder, and in the app folder > > > > below that. > > > > > More importantly, WHY do we need all this? Simple is better and doing > > > > this kabuki dance of directories and filenames seems to be the source > > > > of more heartburn than joy. > > > > > On Oct 10, 2:46 pm, "Ma'moon" wrote: > > > > > Make sure that you have mod-rewrite enabled and also make sure that > > the > > > > > .htaccess files does exist inside cake's folder structure. > > > > > > On Sun, Oct 10, 2010 at 3:42 PM, Renato de Freitas Freire < > > > > > > renat...@gmail.com> wrote: > > > > > > what is the name of your index view file? > > > > > > > i think u have named it index.php.ctp, but its index.ctp only... > > > > > > > try to check this... > > > > > > > -- > > > > > > Renato de Freitas Freire > > > > > > ren...@morfer.org > > > > > > > On Sun, Oct 10, 2010 at 4:37 PM, Jeff wrote: > > > > > > >> Not sure why, but I'm the lucky guy that gets to spend WA more > > > > > >> than 15 minutes on a 'simple' demo. Admittedly I'm a noob, but > > one > > > > > >> would think that something this basic should work. > > > > > > >> I dutifully copied and pasted the code from the tutorial examples > > in > > > > > >> to php files and uploaded them to my webserver, then I went to the > > url > > > > > >> as described in the tutorial - and Cake doesn't seem to be the > > least > > > > > >> bit interested in the blog stuff - it just wants a whole new set > > of > > > > > >> files NOT pointing at Posts, but pointing at > > > > > > >> Missing Method in PostsController > > > > > > >> Error: The action index.php is not defined in controller > > > > > >> PostsController > > > > > > >> Error: Create PostsController::index.php() in file: > > app/controllers/ > > > > > >> posts_controller.php. > > > > > >> > > > > >> class PostsController extends AppController { > > > > > > >> var $name = 'Posts'; > > > > > > >> function index.php() { > > > > > > >> } > > > > > > >> } > > > > > >> ?> > > > > > > >> Notice: If you want to customize this error message, create > > app/views/ > > > > > >> errors/missing_action.ctp. > > > > > > >> So that's all well and good - it wants the basic PostsController > > class > > > > > >> to extend AppController ... but here's the contents of my file in > > > > > >> exactly the right place: > > > > > > >> > > > > >> class PostsController extends AppController { > > > > > >> var $name = 'Posts'; > > > > > >> function index() { > > > > > >> $this->set('posts', $this->Post->find('all')); > > > > > >> } > > > > > >> function view($id = null) { > > > > > >> $this->Post->id = $id; > > > > > >> $this->set('post', $this->Post->read()); > > > > > >> } > > > > > >> } > > > > > >> ?> > > > > > > >> So now what? Anyone with help ... please? > > > > > > >> Check out the new CakePHP Questions sitehttp://cakeqs.organdhelp > > > > > >> others with their CakePHP related questions. > > > > > > >> You received this message because you are subscribed to the Google > > > > Groups > > > > > >> "CakePHP" group. > > > > > >> To post to this group, send email to cake-php@googlegroups.com > > > > > >> To unsubscribe from this group, send email to > > > > > >> cake-php+unsubscr...@googlegroups.com > > > > > > For more options, visit this > > > > group at > > > > > >>http://groups.google.com/group/cake-php?hl=en > > > > > > > Ch
Re: 15 minute Blog Tutorial? Really?
And also please raise the debug level to 2 (edit app/config/core.php file and alter the value of 'debug' to 2) and post the errors that you see in there On Sun, Oct 10, 2010 at 4:20 PM, Jeff wrote: > I'm not trying to be argumentative here ... but we're already beyond > my tolerance for 'extra stuff' (kabuki dance). Mod-rewrite (I now > recall reading about this previously in the docs) IS working fine as I > do have the cake image in the upper left corner and CSS is applied to > warnings and things checking out OK on the main index page. > > So ... all the 'file shifters' seem to be doing what they're supposed > to do but that still doesn't explain the framework not recognizing > files uploaded to the server. > > Now what? > > On Oct 10, 3:13 pm, "Ma'moon" wrote: > > To check if mod-rewrite is enabled check the main page of your site ( > http://example.com) if the default theme of the site went fine (CSS loaded > > correctly on the page) then that would indicate the mod-rewrite is > enabled. > > > > Cake's folder/file structure is pretty strait forward and most cases you > > don't need to alter it, most of your work will be jumping between 3 > folders > > (controllers, models, and views) contained inside the app folder, trust > me, > > no need for kabuki dance :-) > > > > > > > > On Sun, Oct 10, 2010 at 4:04 PM, Jeff wrote: > > > How would I check mod-rewrite? > > > > > .htaccess DOES exist in the cakephp folder, and in the app folder > > > below that. > > > > > More importantly, WHY do we need all this? Simple is better and doing > > > this kabuki dance of directories and filenames seems to be the source > > > of more heartburn than joy. > > > > > On Oct 10, 2:46 pm, "Ma'moon" wrote: > > > > Make sure that you have mod-rewrite enabled and also make sure that > the > > > > .htaccess files does exist inside cake's folder structure. > > > > > > On Sun, Oct 10, 2010 at 3:42 PM, Renato de Freitas Freire < > > > > > > renat...@gmail.com> wrote: > > > > > what is the name of your index view file? > > > > > > > i think u have named it index.php.ctp, but its index.ctp only... > > > > > > > try to check this... > > > > > > > -- > > > > > Renato de Freitas Freire > > > > > ren...@morfer.org > > > > > > > On Sun, Oct 10, 2010 at 4:37 PM, Jeff wrote: > > > > > > >> Not sure why, but I'm the lucky guy that gets to spend WA more > > > > >> than 15 minutes on a 'simple' demo. Admittedly I'm a noob, but > one > > > > >> would think that something this basic should work. > > > > > > >> I dutifully copied and pasted the code from the tutorial examples > in > > > > >> to php files and uploaded them to my webserver, then I went to the > url > > > > >> as described in the tutorial - and Cake doesn't seem to be the > least > > > > >> bit interested in the blog stuff - it just wants a whole new set > of > > > > >> files NOT pointing at Posts, but pointing at > > > > > > >> Missing Method in PostsController > > > > > > >> Error: The action index.php is not defined in controller > > > > >> PostsController > > > > > > >> Error: Create PostsController::index.php() in file: > app/controllers/ > > > > >> posts_controller.php. > > > > >> > > > >> class PostsController extends AppController { > > > > > > >>var $name = 'Posts'; > > > > > > >>function index.php() { > > > > > > >>} > > > > > > >> } > > > > >> ?> > > > > > > >> Notice: If you want to customize this error message, create > app/views/ > > > > >> errors/missing_action.ctp. > > > > > > >> So that's all well and good - it wants the basic PostsController > class > > > > >> to extend AppController ... but here's the contents of my file in > > > > >> exactly the right place: > > > > > > >> > > > >> class PostsController extends AppController { > > > > >>var $name = 'Posts'; > > > > >>function index() { > > > > >>$this->set('posts', $this->Post->find('all')); > > > > >>} > > > > >>function view($id = null) { > > > > >> $this->Post->id = $id; > > > > >>$this->set('post', $this->Post->read()); > > > > >>} > > > > >> } > > > > >> ?> > > > > > > >> So now what? Anyone with help ... please? > > > > > > >> Check out the new CakePHP Questions sitehttp://cakeqs.organdhelp > > > > >> others with their CakePHP related questions. > > > > > > >> You received this message because you are subscribed to the Google > > > Groups > > > > >> "CakePHP" group. > > > > >> To post to this group, send email to cake-php@googlegroups.com > > > > >> To unsubscribe from this group, send email to > > > > >> cake-php+unsubscr...@googlegroups.com > > > > For more options, visit this > > > group at > > > > >>http://groups.google.com/group/cake-php?hl=en > > > > > > > Check out the new CakePHP Questions sitehttp://cakeqs.organdhelp > > > > > others with their CakePHP related questions. > > > > > > > You received this message because you are subscribed to the Google > > > Groups > > > > > "CakePHP" group. > > > > > To pos
Re: 15 minute Blog Tutorial? Really?
How are you accessing your site? please post the URL that you are using to access the index page On Sun, Oct 10, 2010 at 4:20 PM, Jeff wrote: > I'm not trying to be argumentative here ... but we're already beyond > my tolerance for 'extra stuff' (kabuki dance). Mod-rewrite (I now > recall reading about this previously in the docs) IS working fine as I > do have the cake image in the upper left corner and CSS is applied to > warnings and things checking out OK on the main index page. > > So ... all the 'file shifters' seem to be doing what they're supposed > to do but that still doesn't explain the framework not recognizing > files uploaded to the server. > > Now what? > > On Oct 10, 3:13 pm, "Ma'moon" wrote: > > To check if mod-rewrite is enabled check the main page of your site ( > http://example.com) if the default theme of the site went fine (CSS loaded > > correctly on the page) then that would indicate the mod-rewrite is > enabled. > > > > Cake's folder/file structure is pretty strait forward and most cases you > > don't need to alter it, most of your work will be jumping between 3 > folders > > (controllers, models, and views) contained inside the app folder, trust > me, > > no need for kabuki dance :-) > > > > > > > > On Sun, Oct 10, 2010 at 4:04 PM, Jeff wrote: > > > How would I check mod-rewrite? > > > > > .htaccess DOES exist in the cakephp folder, and in the app folder > > > below that. > > > > > More importantly, WHY do we need all this? Simple is better and doing > > > this kabuki dance of directories and filenames seems to be the source > > > of more heartburn than joy. > > > > > On Oct 10, 2:46 pm, "Ma'moon" wrote: > > > > Make sure that you have mod-rewrite enabled and also make sure that > the > > > > .htaccess files does exist inside cake's folder structure. > > > > > > On Sun, Oct 10, 2010 at 3:42 PM, Renato de Freitas Freire < > > > > > > renat...@gmail.com> wrote: > > > > > what is the name of your index view file? > > > > > > > i think u have named it index.php.ctp, but its index.ctp only... > > > > > > > try to check this... > > > > > > > -- > > > > > Renato de Freitas Freire > > > > > ren...@morfer.org > > > > > > > On Sun, Oct 10, 2010 at 4:37 PM, Jeff wrote: > > > > > > >> Not sure why, but I'm the lucky guy that gets to spend WA more > > > > >> than 15 minutes on a 'simple' demo. Admittedly I'm a noob, but > one > > > > >> would think that something this basic should work. > > > > > > >> I dutifully copied and pasted the code from the tutorial examples > in > > > > >> to php files and uploaded them to my webserver, then I went to the > url > > > > >> as described in the tutorial - and Cake doesn't seem to be the > least > > > > >> bit interested in the blog stuff - it just wants a whole new set > of > > > > >> files NOT pointing at Posts, but pointing at > > > > > > >> Missing Method in PostsController > > > > > > >> Error: The action index.php is not defined in controller > > > > >> PostsController > > > > > > >> Error: Create PostsController::index.php() in file: > app/controllers/ > > > > >> posts_controller.php. > > > > >> > > > >> class PostsController extends AppController { > > > > > > >>var $name = 'Posts'; > > > > > > >>function index.php() { > > > > > > >>} > > > > > > >> } > > > > >> ?> > > > > > > >> Notice: If you want to customize this error message, create > app/views/ > > > > >> errors/missing_action.ctp. > > > > > > >> So that's all well and good - it wants the basic PostsController > class > > > > >> to extend AppController ... but here's the contents of my file in > > > > >> exactly the right place: > > > > > > >> > > > >> class PostsController extends AppController { > > > > >>var $name = 'Posts'; > > > > >>function index() { > > > > >>$this->set('posts', $this->Post->find('all')); > > > > >>} > > > > >>function view($id = null) { > > > > >> $this->Post->id = $id; > > > > >>$this->set('post', $this->Post->read()); > > > > >>} > > > > >> } > > > > >> ?> > > > > > > >> So now what? Anyone with help ... please? > > > > > > >> Check out the new CakePHP Questions sitehttp://cakeqs.organdhelp > > > > >> others with their CakePHP related questions. > > > > > > >> You received this message because you are subscribed to the Google > > > Groups > > > > >> "CakePHP" group. > > > > >> To post to this group, send email to cake-php@googlegroups.com > > > > >> To unsubscribe from this group, send email to > > > > >> cake-php+unsubscr...@googlegroups.com > > > > For more options, visit this > > > group at > > > > >>http://groups.google.com/group/cake-php?hl=en > > > > > > > Check out the new CakePHP Questions sitehttp://cakeqs.organdhelp > > > > > others with their CakePHP related questions. > > > > > > > You received this message because you are subscribed to the Google > > > Groups > > > > > "CakePHP" group. > > > > > To post to this group, send email to cake-php@googlegroups.com
Re: 15 minute Blog Tutorial? Really?
I'm not trying to be argumentative here ... but we're already beyond my tolerance for 'extra stuff' (kabuki dance). Mod-rewrite (I now recall reading about this previously in the docs) IS working fine as I do have the cake image in the upper left corner and CSS is applied to warnings and things checking out OK on the main index page. So ... all the 'file shifters' seem to be doing what they're supposed to do but that still doesn't explain the framework not recognizing files uploaded to the server. Now what? On Oct 10, 3:13 pm, "Ma'moon" wrote: > To check if mod-rewrite is enabled check the main page of your site > (http://example.com) if the default theme of the site went fine (CSS loaded > correctly on the page) then that would indicate the mod-rewrite is enabled. > > Cake's folder/file structure is pretty strait forward and most cases you > don't need to alter it, most of your work will be jumping between 3 folders > (controllers, models, and views) contained inside the app folder, trust me, > no need for kabuki dance :-) > > > > On Sun, Oct 10, 2010 at 4:04 PM, Jeff wrote: > > How would I check mod-rewrite? > > > .htaccess DOES exist in the cakephp folder, and in the app folder > > below that. > > > More importantly, WHY do we need all this? Simple is better and doing > > this kabuki dance of directories and filenames seems to be the source > > of more heartburn than joy. > > > On Oct 10, 2:46 pm, "Ma'moon" wrote: > > > Make sure that you have mod-rewrite enabled and also make sure that the > > > .htaccess files does exist inside cake's folder structure. > > > > On Sun, Oct 10, 2010 at 3:42 PM, Renato de Freitas Freire < > > > > renat...@gmail.com> wrote: > > > > what is the name of your index view file? > > > > > i think u have named it index.php.ctp, but its index.ctp only... > > > > > try to check this... > > > > > -- > > > > Renato de Freitas Freire > > > > ren...@morfer.org > > > > > On Sun, Oct 10, 2010 at 4:37 PM, Jeff wrote: > > > > >> Not sure why, but I'm the lucky guy that gets to spend WA more > > > >> than 15 minutes on a 'simple' demo. Admittedly I'm a noob, but one > > > >> would think that something this basic should work. > > > > >> I dutifully copied and pasted the code from the tutorial examples in > > > >> to php files and uploaded them to my webserver, then I went to the url > > > >> as described in the tutorial - and Cake doesn't seem to be the least > > > >> bit interested in the blog stuff - it just wants a whole new set of > > > >> files NOT pointing at Posts, but pointing at > > > > >> Missing Method in PostsController > > > > >> Error: The action index.php is not defined in controller > > > >> PostsController > > > > >> Error: Create PostsController::index.php() in file: app/controllers/ > > > >> posts_controller.php. > > > >> > > >> class PostsController extends AppController { > > > > >> var $name = 'Posts'; > > > > >> function index.php() { > > > > >> } > > > > >> } > > > >> ?> > > > > >> Notice: If you want to customize this error message, create app/views/ > > > >> errors/missing_action.ctp. > > > > >> So that's all well and good - it wants the basic PostsController class > > > >> to extend AppController ... but here's the contents of my file in > > > >> exactly the right place: > > > > >> > > >> class PostsController extends AppController { > > > >> var $name = 'Posts'; > > > >> function index() { > > > >> $this->set('posts', $this->Post->find('all')); > > > >> } > > > >> function view($id = null) { > > > >> $this->Post->id = $id; > > > >> $this->set('post', $this->Post->read()); > > > >> } > > > >> } > > > >> ?> > > > > >> So now what? Anyone with help ... please? > > > > >> Check out the new CakePHP Questions sitehttp://cakeqs.organdhelp > > > >> others with their CakePHP related questions. > > > > >> You received this message because you are subscribed to the Google > > Groups > > > >> "CakePHP" group. > > > >> To post to this group, send email to cake-php@googlegroups.com > > > >> To unsubscribe from this group, send email to > > > >> cake-php+unsubscr...@googlegroups.com > > For more options, visit this > > group at > > > >>http://groups.google.com/group/cake-php?hl=en > > > > > Check out the new CakePHP Questions sitehttp://cakeqs.organdhelp > > > > others with their CakePHP related questions. > > > > > You received this message because you are subscribed to the Google > > Groups > > > > "CakePHP" group. > > > > To post to this group, send email to cake-php@googlegroups.com > > > > To unsubscribe from this group, send email to > > > > cake-php+unsubscr...@googlegroups.com > > For more options, visit this > > group at > > > >http://groups.google.com/group/cake-php?hl=en > > > Check out the new CakePHP Questions sitehttp://cakeqs.organd help others > > with their CakePHP related questions. > > > You received this message because you are subscribed to the Google Groups > > "CakePHP"
Re: 15 minute Blog Tutorial? Really?
To check if mod-rewrite is enabled check the main page of your site ( http://example.com) if the default theme of the site went fine (CSS loaded correctly on the page) then that would indicate the mod-rewrite is enabled. Cake's folder/file structure is pretty strait forward and most cases you don't need to alter it, most of your work will be jumping between 3 folders (controllers, models, and views) contained inside the app folder, trust me, no need for kabuki dance :-) On Sun, Oct 10, 2010 at 4:04 PM, Jeff wrote: > How would I check mod-rewrite? > > .htaccess DOES exist in the cakephp folder, and in the app folder > below that. > > More importantly, WHY do we need all this? Simple is better and doing > this kabuki dance of directories and filenames seems to be the source > of more heartburn than joy. > > > On Oct 10, 2:46 pm, "Ma'moon" wrote: > > Make sure that you have mod-rewrite enabled and also make sure that the > > .htaccess files does exist inside cake's folder structure. > > > > On Sun, Oct 10, 2010 at 3:42 PM, Renato de Freitas Freire < > > > > > > > > renat...@gmail.com> wrote: > > > what is the name of your index view file? > > > > > i think u have named it index.php.ctp, but its index.ctp only... > > > > > try to check this... > > > > > -- > > > Renato de Freitas Freire > > > ren...@morfer.org > > > > > On Sun, Oct 10, 2010 at 4:37 PM, Jeff wrote: > > > > >> Not sure why, but I'm the lucky guy that gets to spend WA more > > >> than 15 minutes on a 'simple' demo. Admittedly I'm a noob, but one > > >> would think that something this basic should work. > > > > >> I dutifully copied and pasted the code from the tutorial examples in > > >> to php files and uploaded them to my webserver, then I went to the url > > >> as described in the tutorial - and Cake doesn't seem to be the least > > >> bit interested in the blog stuff - it just wants a whole new set of > > >> files NOT pointing at Posts, but pointing at > > > > >> Missing Method in PostsController > > > > >> Error: The action index.php is not defined in controller > > >> PostsController > > > > >> Error: Create PostsController::index.php() in file: app/controllers/ > > >> posts_controller.php. > > >> > >> class PostsController extends AppController { > > > > >>var $name = 'Posts'; > > > > >>function index.php() { > > > > >>} > > > > >> } > > >> ?> > > > > >> Notice: If you want to customize this error message, create app/views/ > > >> errors/missing_action.ctp. > > > > >> So that's all well and good - it wants the basic PostsController class > > >> to extend AppController ... but here's the contents of my file in > > >> exactly the right place: > > > > >> > >> class PostsController extends AppController { > > >>var $name = 'Posts'; > > >>function index() { > > >>$this->set('posts', $this->Post->find('all')); > > >>} > > >>function view($id = null) { > > >> $this->Post->id = $id; > > >>$this->set('post', $this->Post->read()); > > >>} > > >> } > > >> ?> > > > > >> So now what? Anyone with help ... please? > > > > >> Check out the new CakePHP Questions sitehttp://cakeqs.organd help > > >> others with their CakePHP related questions. > > > > >> You received this message because you are subscribed to the Google > Groups > > >> "CakePHP" group. > > >> To post to this group, send email to cake-php@googlegroups.com > > >> To unsubscribe from this group, send email to > > >> cake-php+unsubscr...@googlegroups.com > For more options, visit this > group at > > >>http://groups.google.com/group/cake-php?hl=en > > > > > Check out the new CakePHP Questions sitehttp://cakeqs.organd help > > > others with their CakePHP related questions. > > > > > You received this message because you are subscribed to the Google > Groups > > > "CakePHP" group. > > > To post to this group, send email to cake-php@googlegroups.com > > > To unsubscribe from this group, send email to > > > cake-php+unsubscr...@googlegroups.com > For more options, visit this > group at > > >http://groups.google.com/group/cake-php?hl=en > > Check out the new CakePHP Questions site http://cakeqs.org and help others > with their CakePHP related questions. > > You received this message because you are subscribed to the Google Groups > "CakePHP" group. > To post to this group, send email to cake-php@googlegroups.com > To unsubscribe from this group, send email to > cake-php+unsubscr...@googlegroups.comFor > more options, visit this group at > http://groups.google.com/group/cake-php?hl=en > Check out the new CakePHP Questions site http://cakeqs.org and help others with their CakePHP related questions. You received this message because you are subscribed to the Google Groups "CakePHP" group. To post to this group, send email to cake-php@googlegroups.com To unsubscribe from this group, send email to cake-php+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/cake-
Re: 15 Minute Blog Tutorial - not quite 15 minutes
The URL you should access is http://click-2-run.com/cakephp/app/posts/index - without .php file name extension. In CakePHP you're accessing actions defined in controller, not files. For this reason there are no file name extensions. They can be enabled in the router configuration though: http://book.cakephp.org/view/952/File-extensions On Oct 10, 9:46 pm, Jeff wrote: > Not sure why, but I'm the lucky guy that gets to spend WA more > than 15 minutes on a 'simple' demo. Admittedly I'm a noob, but one > would think that something this basic should work. > > I dutifully copied and pasted the code from the tutorial examples in > to php files and uploaded them to my webserver, then I went to the > url > as described in the tutorial - and Cake doesn't seem to be the least > bit interested. I know the file is in the right place (per the > instructions in the tutorial), but here's what I get: > > Missing Method in PostsController > > Error: The action index.php is not defined in controller > PostsController > > Error: Create PostsController::index.php() in file: app/controllers/ > posts_controller.php. > class PostsController extends AppController { > > var $name = 'Posts'; > > function index.php() { > > } > > } > > ?> > > Notice: If you want to customize this error message, create app/ > views/ > errors/missing_action.ctp. > > So that's all well and good - it wants the basic PostsController > class > to extend AppController ... but here's the contents of my file in > exactly the right place: > > class PostsController extends AppController { > var $name = 'Posts'; > function index() { > $this->set('posts', $this->Post->find('all')); > } > function view($id = null) { > $this->Post->id = $id; > $this->set('post', $this->Post->read()); > } > > } > > ?> > > The test project is located athttp://Click-2-Run.com/cakephp/app/ > > The URL I entered to try the project out > ishttp://click-2-run.com/cakephp/app/posts/index.php > > ... and yes, I checked - the .htaccess files WERE uploaded when I > unzipped and uploaded Cake to the server. > > So now what? Anyone with help ... please? Check out the new CakePHP Questions site http://cakeqs.org and help others with their CakePHP related questions. You received this message because you are subscribed to the Google Groups "CakePHP" group. To post to this group, send email to cake-php@googlegroups.com To unsubscribe from this group, send email to cake-php+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/cake-php?hl=en
Re: 15 minute Blog Tutorial? Really?
How would I check mod-rewrite? .htaccess DOES exist in the cakephp folder, and in the app folder below that. More importantly, WHY do we need all this? Simple is better and doing this kabuki dance of directories and filenames seems to be the source of more heartburn than joy. On Oct 10, 2:46 pm, "Ma'moon" wrote: > Make sure that you have mod-rewrite enabled and also make sure that the > .htaccess files does exist inside cake's folder structure. > > On Sun, Oct 10, 2010 at 3:42 PM, Renato de Freitas Freire < > > > > renat...@gmail.com> wrote: > > what is the name of your index view file? > > > i think u have named it index.php.ctp, but its index.ctp only... > > > try to check this... > > > -- > > Renato de Freitas Freire > > ren...@morfer.org > > > On Sun, Oct 10, 2010 at 4:37 PM, Jeff wrote: > > >> Not sure why, but I'm the lucky guy that gets to spend WA more > >> than 15 minutes on a 'simple' demo. Admittedly I'm a noob, but one > >> would think that something this basic should work. > > >> I dutifully copied and pasted the code from the tutorial examples in > >> to php files and uploaded them to my webserver, then I went to the url > >> as described in the tutorial - and Cake doesn't seem to be the least > >> bit interested in the blog stuff - it just wants a whole new set of > >> files NOT pointing at Posts, but pointing at > > >> Missing Method in PostsController > > >> Error: The action index.php is not defined in controller > >> PostsController > > >> Error: Create PostsController::index.php() in file: app/controllers/ > >> posts_controller.php. > >> >> class PostsController extends AppController { > > >> var $name = 'Posts'; > > >> function index.php() { > > >> } > > >> } > >> ?> > > >> Notice: If you want to customize this error message, create app/views/ > >> errors/missing_action.ctp. > > >> So that's all well and good - it wants the basic PostsController class > >> to extend AppController ... but here's the contents of my file in > >> exactly the right place: > > >> >> class PostsController extends AppController { > >> var $name = 'Posts'; > >> function index() { > >> $this->set('posts', $this->Post->find('all')); > >> } > >> function view($id = null) { > >> $this->Post->id = $id; > >> $this->set('post', $this->Post->read()); > >> } > >> } > >> ?> > > >> So now what? Anyone with help ... please? > > >> Check out the new CakePHP Questions sitehttp://cakeqs.organd help > >> others with their CakePHP related questions. > > >> You received this message because you are subscribed to the Google Groups > >> "CakePHP" group. > >> To post to this group, send email to cake-php@googlegroups.com > >> To unsubscribe from this group, send email to > >> cake-php+unsubscr...@googlegroups.comFor > >> more options, visit this group at > >>http://groups.google.com/group/cake-php?hl=en > > > Check out the new CakePHP Questions sitehttp://cakeqs.organd help > > others with their CakePHP related questions. > > > You received this message because you are subscribed to the Google Groups > > "CakePHP" group. > > To post to this group, send email to cake-php@googlegroups.com > > To unsubscribe from this group, send email to > > cake-php+unsubscr...@googlegroups.comFor > > more options, visit this group at > >http://groups.google.com/group/cake-php?hl=en Check out the new CakePHP Questions site http://cakeqs.org and help others with their CakePHP related questions. You received this message because you are subscribed to the Google Groups "CakePHP" group. To post to this group, send email to cake-php@googlegroups.com To unsubscribe from this group, send email to cake-php+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/cake-php?hl=en
Re: 15 minute Blog Tutorial? Really?
it IS index.ctp - my typo on the previous post, but the file actually IS index.ctp and I get the same result when requesting index.ctp instead of index.php On Oct 10, 2:42 pm, Renato de Freitas Freire wrote: > what is the name of your index view file? > > i think u have named it index.php.ctp, but its index.ctp only... > > try to check this... > > -- > Renato de Freitas Freire > ren...@morfer.org > > > > On Sun, Oct 10, 2010 at 4:37 PM, Jeff wrote: > > Not sure why, but I'm the lucky guy that gets to spend WA more > > than 15 minutes on a 'simple' demo. Admittedly I'm a noob, but one > > would think that something this basic should work. > > > I dutifully copied and pasted the code from the tutorial examples in > > to php files and uploaded them to my webserver, then I went to the url > > as described in the tutorial - and Cake doesn't seem to be the least > > bit interested in the blog stuff - it just wants a whole new set of > > files NOT pointing at Posts, but pointing at > > > Missing Method in PostsController > > > Error: The action index.php is not defined in controller > > PostsController > > > Error: Create PostsController::index.php() in file: app/controllers/ > > posts_controller.php. > > > class PostsController extends AppController { > > > var $name = 'Posts'; > > > function index.php() { > > > } > > > } > > ?> > > > Notice: If you want to customize this error message, create app/views/ > > errors/missing_action.ctp. > > > So that's all well and good - it wants the basic PostsController class > > to extend AppController ... but here's the contents of my file in > > exactly the right place: > > > > class PostsController extends AppController { > > var $name = 'Posts'; > > function index() { > > $this->set('posts', $this->Post->find('all')); > > } > > function view($id = null) { > > $this->Post->id = $id; > > $this->set('post', $this->Post->read()); > > } > > } > > ?> > > > So now what? Anyone with help ... please? > > > Check out the new CakePHP Questions sitehttp://cakeqs.organd help others > > with their CakePHP related questions. > > > You received this message because you are subscribed to the Google Groups > > "CakePHP" group. > > To post to this group, send email to cake-php@googlegroups.com > > To unsubscribe from this group, send email to > > cake-php+unsubscr...@googlegroups.comFor > > more options, visit this group at > >http://groups.google.com/group/cake-php?hl=en Check out the new CakePHP Questions site http://cakeqs.org and help others with their CakePHP related questions. You received this message because you are subscribed to the Google Groups "CakePHP" group. To post to this group, send email to cake-php@googlegroups.com To unsubscribe from this group, send email to cake-php+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/cake-php?hl=en
Re: creating a jpeg from a layout
sure you want a jpg? and not a pdf? On 10 Okt., 17:17, Tomfox Wiranata wrote: > hi everyone, > > lets say I have a view, showing some text and pictures. > > is it possible to create a jpg from that view? > > is there a helper? a tutorial? appreciate your help. thank you!! Check out the new CakePHP Questions site http://cakeqs.org and help others with their CakePHP related questions. You received this message because you are subscribed to the Google Groups "CakePHP" group. To post to this group, send email to cake-php@googlegroups.com To unsubscribe from this group, send email to cake-php+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/cake-php?hl=en
Re: Problem with Html Helper basepath in MAMP
always use arrays for internal links On 10 Okt., 17:35, roktok wrote: > I am struggling with Html helper in cake 1.3. The url method seems to > reference different relative roots: > > echo "app: " . APP; > echo "www_root: " . WWW_ROOT; > echo "images: " . IMAGES; > echo "url_test_relative: " . $this->Html->url('/albums/show/'); > echo "url_test_absolute: " . $this->Html->url('/albums/show/',true); > ?> > > In MAMP I get the following paths: > > app: /Applications/MAMP/htdocs/tunds/ > www_root: /Applications/MAMP/htdocs/tunds/webroot/ > images: /Applications/MAMP/htdocs/tunds/webroot/img/ > url_test_relative: /tunds/albums/show/ > url_test_absolute:http://localhost:/tunds/albums/show/ > > When I use the script online, I get the following paths instead: > > app: /www/htdocs/w00c9135/htdocs/tunds/ > www_root: /www/htdocs/w00c9135/htdocs/tunds/webroot/ > images: /www/htdocs/w00c9135/htdocs/tunds/webroot/img/ > url_test_relative: /albums/show/ > url_test_absolute:http://tunds.server.com/albums/show/ > > I expected to get the same relative url in MAMP ('/albums/show/'), but > it generates ('/TUNDS/albums/show/"), while all the other paths seems > to work fine. How can I fix this issue? > > Thank you all. > Best Heiko Check out the new CakePHP Questions site http://cakeqs.org and help others with their CakePHP related questions. You received this message because you are subscribed to the Google Groups "CakePHP" group. To post to this group, send email to cake-php@googlegroups.com To unsubscribe from this group, send email to cake-php+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/cake-php?hl=en
Re: 15 minute Blog Tutorial? Really?
Make sure that you have mod-rewrite enabled and also make sure that the .htaccess files does exist inside cake's folder structure. On Sun, Oct 10, 2010 at 3:42 PM, Renato de Freitas Freire < renat...@gmail.com> wrote: > what is the name of your index view file? > > i think u have named it index.php.ctp, but its index.ctp only... > > try to check this... > > -- > Renato de Freitas Freire > ren...@morfer.org > > > > On Sun, Oct 10, 2010 at 4:37 PM, Jeff wrote: > >> Not sure why, but I'm the lucky guy that gets to spend WA more >> than 15 minutes on a 'simple' demo. Admittedly I'm a noob, but one >> would think that something this basic should work. >> >> I dutifully copied and pasted the code from the tutorial examples in >> to php files and uploaded them to my webserver, then I went to the url >> as described in the tutorial - and Cake doesn't seem to be the least >> bit interested in the blog stuff - it just wants a whole new set of >> files NOT pointing at Posts, but pointing at >> >> Missing Method in PostsController >> >> Error: The action index.php is not defined in controller >> PostsController >> >> Error: Create PostsController::index.php() in file: app/controllers/ >> posts_controller.php. >> > class PostsController extends AppController { >> >>var $name = 'Posts'; >> >> >>function index.php() { >> >>} >> >> } >> ?> >> >> Notice: If you want to customize this error message, create app/views/ >> errors/missing_action.ctp. >> >> So that's all well and good - it wants the basic PostsController class >> to extend AppController ... but here's the contents of my file in >> exactly the right place: >> >> > class PostsController extends AppController { >>var $name = 'Posts'; >>function index() { >>$this->set('posts', $this->Post->find('all')); >>} >>function view($id = null) { >> $this->Post->id = $id; >>$this->set('post', $this->Post->read()); >>} >> } >> ?> >> >> So now what? Anyone with help ... please? >> >> Check out the new CakePHP Questions site http://cakeqs.org and help >> others with their CakePHP related questions. >> >> You received this message because you are subscribed to the Google Groups >> "CakePHP" group. >> To post to this group, send email to cake-php@googlegroups.com >> To unsubscribe from this group, send email to >> cake-php+unsubscr...@googlegroups.comFor >> more options, visit this group at >> http://groups.google.com/group/cake-php?hl=en >> > > Check out the new CakePHP Questions site http://cakeqs.org and help > others with their CakePHP related questions. > > You received this message because you are subscribed to the Google Groups > "CakePHP" group. > To post to this group, send email to cake-php@googlegroups.com > To unsubscribe from this group, send email to > cake-php+unsubscr...@googlegroups.comFor > more options, visit this group at > http://groups.google.com/group/cake-php?hl=en > Check out the new CakePHP Questions site http://cakeqs.org and help others with their CakePHP related questions. You received this message because you are subscribed to the Google Groups "CakePHP" group. To post to this group, send email to cake-php@googlegroups.com To unsubscribe from this group, send email to cake-php+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/cake-php?hl=en
15 Minute Blog Tutorial - not quite 15 minutes
Not sure why, but I'm the lucky guy that gets to spend WA more than 15 minutes on a 'simple' demo. Admittedly I'm a noob, but one would think that something this basic should work. I dutifully copied and pasted the code from the tutorial examples in to php files and uploaded them to my webserver, then I went to the url as described in the tutorial - and Cake doesn't seem to be the least bit interested. I know the file is in the right place (per the instructions in the tutorial), but here's what I get: Missing Method in PostsController Error: The action index.php is not defined in controller PostsController Error: Create PostsController::index.php() in file: app/controllers/ posts_controller.php. Notice: If you want to customize this error message, create app/ views/ errors/missing_action.ctp. So that's all well and good - it wants the basic PostsController class to extend AppController ... but here's the contents of my file in exactly the right place: set('posts', $this->Post->find('all')); } function view($id = null) { $this->Post->id = $id; $this->set('post', $this->Post->read()); } } ?> The test project is located at http://Click-2-Run.com/cakephp/app/ The URL I entered to try the project out is http://click-2-run.com/cakephp/app/posts/index.php ... and yes, I checked - the .htaccess files WERE uploaded when I unzipped and uploaded Cake to the server. So now what? Anyone with help ... please? Check out the new CakePHP Questions site http://cakeqs.org and help others with their CakePHP related questions. You received this message because you are subscribed to the Google Groups "CakePHP" group. To post to this group, send email to cake-php@googlegroups.com To unsubscribe from this group, send email to cake-php+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/cake-php?hl=en
Re: 15 minute Blog Tutorial? Really?
what is the name of your index view file? i think u have named it index.php.ctp, but its index.ctp only... try to check this... -- Renato de Freitas Freire ren...@morfer.org On Sun, Oct 10, 2010 at 4:37 PM, Jeff wrote: > Not sure why, but I'm the lucky guy that gets to spend WA more > than 15 minutes on a 'simple' demo. Admittedly I'm a noob, but one > would think that something this basic should work. > > I dutifully copied and pasted the code from the tutorial examples in > to php files and uploaded them to my webserver, then I went to the url > as described in the tutorial - and Cake doesn't seem to be the least > bit interested in the blog stuff - it just wants a whole new set of > files NOT pointing at Posts, but pointing at > > Missing Method in PostsController > > Error: The action index.php is not defined in controller > PostsController > > Error: Create PostsController::index.php() in file: app/controllers/ > posts_controller.php. > class PostsController extends AppController { > >var $name = 'Posts'; > > >function index.php() { > >} > > } > ?> > > Notice: If you want to customize this error message, create app/views/ > errors/missing_action.ctp. > > So that's all well and good - it wants the basic PostsController class > to extend AppController ... but here's the contents of my file in > exactly the right place: > > class PostsController extends AppController { >var $name = 'Posts'; >function index() { >$this->set('posts', $this->Post->find('all')); >} >function view($id = null) { > $this->Post->id = $id; >$this->set('post', $this->Post->read()); >} > } > ?> > > So now what? Anyone with help ... please? > > Check out the new CakePHP Questions site http://cakeqs.org and help others > with their CakePHP related questions. > > You received this message because you are subscribed to the Google Groups > "CakePHP" group. > To post to this group, send email to cake-php@googlegroups.com > To unsubscribe from this group, send email to > cake-php+unsubscr...@googlegroups.comFor > more options, visit this group at > http://groups.google.com/group/cake-php?hl=en > Check out the new CakePHP Questions site http://cakeqs.org and help others with their CakePHP related questions. You received this message because you are subscribed to the Google Groups "CakePHP" group. To post to this group, send email to cake-php@googlegroups.com To unsubscribe from this group, send email to cake-php+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/cake-php?hl=en
15 minute Blog Tutorial? Really?
Not sure why, but I'm the lucky guy that gets to spend WA more than 15 minutes on a 'simple' demo. Admittedly I'm a noob, but one would think that something this basic should work. I dutifully copied and pasted the code from the tutorial examples in to php files and uploaded them to my webserver, then I went to the url as described in the tutorial - and Cake doesn't seem to be the least bit interested in the blog stuff - it just wants a whole new set of files NOT pointing at Posts, but pointing at Missing Method in PostsController Error: The action index.php is not defined in controller PostsController Error: Create PostsController::index.php() in file: app/controllers/ posts_controller.php. Notice: If you want to customize this error message, create app/views/ errors/missing_action.ctp. So that's all well and good - it wants the basic PostsController class to extend AppController ... but here's the contents of my file in exactly the right place: set('posts', $this->Post->find('all')); } function view($id = null) { $this->Post->id = $id; $this->set('post', $this->Post->read()); } } ?> So now what? Anyone with help ... please? Check out the new CakePHP Questions site http://cakeqs.org and help others with their CakePHP related questions. You received this message because you are subscribed to the Google Groups "CakePHP" group. To post to this group, send email to cake-php@googlegroups.com To unsubscribe from this group, send email to cake-php+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/cake-php?hl=en
Re: Problem with hasOne Relation
Ahh thank you guys so much! Adding the "url" to the form-helper did the trick. I'm using the Auth- component so I'll use $this->Auth->user('id') to identify the user. I also deleted the "belongsTo" statement from my user_profile model and everything is working in the exact same way so this really isn't necessary. It wasn't causing any problems but it's still good to know that you don't need it for a hasOne relation, so thanks for the info! thanks again and kind regards Raphi On 10 Okt., 08:38, and wrote: > Sometimes, if you use both 'hasOne' and 'belongsTo' it doesn't work. I > experienced it very often. Try just to use one of them. > And the second point is that, if you have typed it here correctly, > your $belongsTo is not correct. $belongsTo = array(''); but try it > without belongsTo. I had those issues also in my usermanagement where > I wanted to create a connection from the user itself to some special > properties like birthday and stuff like that. > > keep going :-) > > On 3 Okt., 20:01,Raphi wrote: > > > Hi there, > > > I'm new to Cake and now I seem to have a little understanding problem. > > The situation is this: > > > I have a UsersController and a User Model. Then there is an > > editProfile() method within my UsersController. Of course I also > > created a view (users/edit_profile.ctp). My problem is that I want to > > have an editable automagic form on that page that is linked to the > > user_profiles table. > > > What I did is, I added "var $hasOne = array('UserProfile');" to my > > User Model. And I created a form like this: > > > echo $form->create('UserProfile'); > > echo $form->input('id'); > > echo $form->input('name'); > > echo $form->end(); > > > Then I created a user_profile.php model file and added "var $belongsTo > > = 'User';" to it. The user_profiles table has a "user_id" foreign key. > > > When I send the form, cake throws an error as it cannot find the > > "UserProfileController". Normally this would be ok but for I want the > > UsersController to do all the work it's not. What can I do? I mean, I > > could create a user_profiles_controller.php to send the form and > > afterwards do a redirect to the form but that wouldn't be very > > fashionable. > > > I hope you can help me out. > > > Regards > > >Raphi Check out the new CakePHP Questions site http://cakeqs.org and help others with their CakePHP related questions. You received this message because you are subscribed to the Google Groups "CakePHP" group. To post to this group, send email to cake-php@googlegroups.com To unsubscribe from this group, send email to cake-php+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/cake-php?hl=en
Re: Is this a do-able Cake project?
Make sure u have uploaded the .htaccess files (in cake folder, app folder and webroot folder) u dont need to dedicate the domain root to cake... it will work in any folder u put it... u just need to follow the directory structure... When u start working on wizard component, u need to do only one fix... i dont have it here now, but when i get into my house ill send it to you... -- Renato de Freitas Freire ren...@morfer.org On Sun, Oct 10, 2010 at 2:21 PM, Jeff wrote: > Thanks Renato, > > After posting this question (before your reply) I _did_ see that > wizard component ... that was encouraging. > > I'm working my way through the 15 minute blog tutorial - which has now > taken about an hour and I still haven't seen anything work right on > the screen. That's DIScouraging. > > This is almost certainly because I don't have cakephp in the domain > root, because I can't dedicate a domain just to fooling around with > Cakephp ... so the framework keeps telling me I don't have what I > need, even though I've done everything the tutorial has told me to do > and I have made sure it's all uploaded. > > Argh - not a good start. > > Jeff > > On Oct 10, 11:15 am, Renato de Freitas Freire > wrote: > > Its totally possible. > > > > There is a component for cakephp named wizard. > > Just look for it in google. > > Its very easy to use and it let you do your form into various steps > > and jump between them. > > To send emails, use phpmailer, its the best option too. > > > > There is a lot of content out there, but if u need some help, just ask > here. > > > > Good luck. > > > > > > > > > > > > On Sunday, October 10, 2010, Jeff wrote: > > > I am totally new to Cake and am seeking a tool that will help me > > > develop a rather 'hefty' project. > > > > > This project would be a multi-step form wizard to accept reservations > > > for events. A form for site visitor (name, address, etc), a consent > > > agreement page, a form for activities (time, day, level of experience, > > > other preferences), a page for billing calculation, and a handoff to > > > PayPal or instruction on how to pay by mail. > > > > > The app would need to have looping capability and I would like to > > > allow the visitor to 'jump to' various points in the process. > > > Different events would have different steps and in some cases > > > different forms depending on the type of event and organization > > > sponsoring it. > > > > > When the site visitor says they are done, I would like to store the > > > data in a MySQL database, send a verification e-mail to the site > > > visitor, and notify the event organizer by e-mail as well: "You've got > > > a participant!" > > > > > This seems me that it would be a rather ambitious project for a noob, > > > but before I spend a lot of time climbing this learning curve, I'm > > > hoping those of you experienced in this community can let me know if I > > > can put together this type of app using Cake, or if I'm trying to use > > > the appropriate tool for the job. > > > > > Thanks in advance for your insights! > > > > > Check out the new CakePHP Questions sitehttp://cakeqs.organd help > others with their CakePHP related questions. > > > > > You received this message because you are subscribed to the Google > Groups "CakePHP" group. > > > To post to this group, send email to cake-php@googlegroups.com > > > To unsubscribe from this group, send email to > > > cake-php+unsubscr...@googlegroups.com > > > For > more options, visit this group athttp:// > groups.google.com/group/cake-php?hl=en > > > > -- > > > > -- > > Renato de Freitas Freire > > ren...@morfer.org > > Check out the new CakePHP Questions site http://cakeqs.org and help others > with their CakePHP related questions. > > You received this message because you are subscribed to the Google Groups > "CakePHP" group. > To post to this group, send email to cake-php@googlegroups.com > To unsubscribe from this group, send email to > cake-php+unsubscr...@googlegroups.comFor > more options, visit this group at > http://groups.google.com/group/cake-php?hl=en > Check out the new CakePHP Questions site http://cakeqs.org and help others with their CakePHP related questions. You received this message because you are subscribed to the Google Groups "CakePHP" group. To post to this group, send email to cake-php@googlegroups.com To unsubscribe from this group, send email to cake-php+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/cake-php?hl=en
Re: Is this a do-able Cake project?
Thanks Renato, After posting this question (before your reply) I _did_ see that wizard component ... that was encouraging. I'm working my way through the 15 minute blog tutorial - which has now taken about an hour and I still haven't seen anything work right on the screen. That's DIScouraging. This is almost certainly because I don't have cakephp in the domain root, because I can't dedicate a domain just to fooling around with Cakephp ... so the framework keeps telling me I don't have what I need, even though I've done everything the tutorial has told me to do and I have made sure it's all uploaded. Argh - not a good start. Jeff On Oct 10, 11:15 am, Renato de Freitas Freire wrote: > Its totally possible. > > There is a component for cakephp named wizard. > Just look for it in google. > Its very easy to use and it let you do your form into various steps > and jump between them. > To send emails, use phpmailer, its the best option too. > > There is a lot of content out there, but if u need some help, just ask here. > > Good luck. > > > > > > On Sunday, October 10, 2010, Jeff wrote: > > I am totally new to Cake and am seeking a tool that will help me > > develop a rather 'hefty' project. > > > This project would be a multi-step form wizard to accept reservations > > for events. A form for site visitor (name, address, etc), a consent > > agreement page, a form for activities (time, day, level of experience, > > other preferences), a page for billing calculation, and a handoff to > > PayPal or instruction on how to pay by mail. > > > The app would need to have looping capability and I would like to > > allow the visitor to 'jump to' various points in the process. > > Different events would have different steps and in some cases > > different forms depending on the type of event and organization > > sponsoring it. > > > When the site visitor says they are done, I would like to store the > > data in a MySQL database, send a verification e-mail to the site > > visitor, and notify the event organizer by e-mail as well: "You've got > > a participant!" > > > This seems me that it would be a rather ambitious project for a noob, > > but before I spend a lot of time climbing this learning curve, I'm > > hoping those of you experienced in this community can let me know if I > > can put together this type of app using Cake, or if I'm trying to use > > the appropriate tool for the job. > > > Thanks in advance for your insights! > > > Check out the new CakePHP Questions sitehttp://cakeqs.organd help others > > with their CakePHP related questions. > > > You received this message because you are subscribed to the Google Groups > > "CakePHP" group. > > To post to this group, send email to cake-php@googlegroups.com > > To unsubscribe from this group, send email to > > cake-php+unsubscr...@googlegroups.com for more options, visit this group > > athttp://groups.google.com/group/cake-php?hl=en > > -- > > -- > Renato de Freitas Freire > ren...@morfer.org Check out the new CakePHP Questions site http://cakeqs.org and help others with their CakePHP related questions. You received this message because you are subscribed to the Google Groups "CakePHP" group. To post to this group, send email to cake-php@googlegroups.com To unsubscribe from this group, send email to cake-php+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/cake-php?hl=en
Re: Is this a do-able Cake project?
Its totally possible. There is a component for cakephp named wizard. Just look for it in google. Its very easy to use and it let you do your form into various steps and jump between them. To send emails, use phpmailer, its the best option too. There is a lot of content out there, but if u need some help, just ask here. Good luck. On Sunday, October 10, 2010, Jeff wrote: > I am totally new to Cake and am seeking a tool that will help me > develop a rather 'hefty' project. > > This project would be a multi-step form wizard to accept reservations > for events. A form for site visitor (name, address, etc), a consent > agreement page, a form for activities (time, day, level of experience, > other preferences), a page for billing calculation, and a handoff to > PayPal or instruction on how to pay by mail. > > The app would need to have looping capability and I would like to > allow the visitor to 'jump to' various points in the process. > Different events would have different steps and in some cases > different forms depending on the type of event and organization > sponsoring it. > > When the site visitor says they are done, I would like to store the > data in a MySQL database, send a verification e-mail to the site > visitor, and notify the event organizer by e-mail as well: "You've got > a participant!" > > This seems me that it would be a rather ambitious project for a noob, > but before I spend a lot of time climbing this learning curve, I'm > hoping those of you experienced in this community can let me know if I > can put together this type of app using Cake, or if I'm trying to use > the appropriate tool for the job. > > Thanks in advance for your insights! > > Check out the new CakePHP Questions site http://cakeqs.org and help others > with their CakePHP related questions. > > You received this message because you are subscribed to the Google Groups > "CakePHP" group. > To post to this group, send email to cake-php@googlegroups.com > To unsubscribe from this group, send email to > cake-php+unsubscr...@googlegroups.com for more options, visit this group at > http://groups.google.com/group/cake-php?hl=en > -- -- Renato de Freitas Freire ren...@morfer.org Check out the new CakePHP Questions site http://cakeqs.org and help others with their CakePHP related questions. You received this message because you are subscribed to the Google Groups "CakePHP" group. To post to this group, send email to cake-php@googlegroups.com To unsubscribe from this group, send email to cake-php+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/cake-php?hl=en
Re: Callback parentNode() not defined in Owner
Well not exactly sure why this worked but putting a parentNode() method in my Community model made the error go away. I just copied the one from my user model. *shrug* I wish I understood what the heck I was doing! On Oct 10, 8:23 am, Nancy wrote: > I'm finally braving the waters of auth/acl. I'm going from the > tutorial in the 1.3 cake docs. > Here's how I defined it: > > modesl/user.php > class User extends AppModel { > var $hasMany = array( > 'Owner' => array( > 'className' => 'Community', > 'foreignKey' => 'owner_id', > ), > ); > > models/community.php > class Community extends AppModel { > var $belongsTo = array( > 'Owner' => array( > 'className' => 'User', > 'foreignKey' => 'owner_id', > ), > ); > > I made an additional association to the user model and called it > owner_id and ever since I've been getting his error: > > Warning (512): Callback parentNode() not defined in Owner [CORE/cake/ > libs/model/behaviors/acl.php, line 64] > > > I have a parentNode function in my user model (mindlessly copied from > the tutorial). > > function parentNode() > { > if (!$this->id && empty($this->data)) > { > return null; > } > if (isset($this->data['User']['group_id'])) > { > $groupId = $this->data['User']['group_id']; > } > else > { > $groupId = $this->field('group_id'); > } > if (! $groupId) > { > return null; > } > else > { > return array('Group' => array('id' => $groupId)); > } > } > == > > Any suggestions on how to make that warning message go away? I'm > stumped. Check out the new CakePHP Questions site http://cakeqs.org and help others with their CakePHP related questions. You received this message because you are subscribed to the Google Groups "CakePHP" group. To post to this group, send email to cake-php@googlegroups.com To unsubscribe from this group, send email to cake-php+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/cake-php?hl=en
Problem with Html Helper basepath in MAMP
I am struggling with Html helper in cake 1.3. The url method seems to reference different relative roots: Html->url('/albums/show/'); echo "url_test_absolute: " . $this->Html->url('/albums/show/',true); ?> In MAMP I get the following paths: app: /Applications/MAMP/htdocs/tunds/ www_root: /Applications/MAMP/htdocs/tunds/webroot/ images: /Applications/MAMP/htdocs/tunds/webroot/img/ url_test_relative: /tunds/albums/show/ url_test_absolute: http://localhost:/tunds/albums/show/ When I use the script online, I get the following paths instead: app: /www/htdocs/w00c9135/htdocs/tunds/ www_root: /www/htdocs/w00c9135/htdocs/tunds/webroot/ images: /www/htdocs/w00c9135/htdocs/tunds/webroot/img/ url_test_relative: /albums/show/ url_test_absolute: http://tunds.server.com/albums/show/ I expected to get the same relative url in MAMP ('/albums/show/'), but it generates ('/TUNDS/albums/show/"), while all the other paths seems to work fine. How can I fix this issue? Thank you all. Best Heiko Check out the new CakePHP Questions site http://cakeqs.org and help others with their CakePHP related questions. You received this message because you are subscribed to the Google Groups "CakePHP" group. To post to this group, send email to cake-php@googlegroups.com To unsubscribe from this group, send email to cake-php+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/cake-php?hl=en
Problem with Html Helper basepath in MAMP
I am struggling with Html helper in cake 1.3. The url method seems to reference different relative roots: Html->url('/albums/show/'); echo "url_test_absolute: " . $this->Html->url('/albums/show/',true); ?> In MAMP I get the following paths: app: /Applications/MAMP/htdocs/tunds/ www_root: /Applications/MAMP/htdocs/tunds/webroot/ images: /Applications/MAMP/htdocs/tunds/webroot/img/ url_test_relative: /tunds/albums/show/ url_test_absolute: http://localhost:/tunds/albums/show/ When I use the script online, I get the following paths instead: app: /www/htdocs/w00c9135/htdocs/tunds/ www_root: /www/htdocs/w00c9135/htdocs/tunds/webroot/ images: /www/htdocs/w00c9135/htdocs/tunds/webroot/img/ url_test_relative: /albums/show/ url_test_absolute: http://tunds.antoniaschroeder.com/albums/show/ I expected to get the same relative url in MAMP ('/albums/show/'), but it generates ('/TUNDS/albums/show/"), while all the other paths seems to work fine. How can I fix this issue? Thank you all. Best Heiko Check out the new CakePHP Questions site http://cakeqs.org and help others with their CakePHP related questions. You received this message because you are subscribed to the Google Groups "CakePHP" group. To post to this group, send email to cake-php@googlegroups.com To unsubscribe from this group, send email to cake-php+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/cake-php?hl=en
Callback parentNode() not defined in Owner
I'm finally braving the waters of auth/acl. I'm going from the tutorial in the 1.3 cake docs. Here's how I defined it: modesl/user.php class User extends AppModel { var $hasMany = array( 'Owner' => array( 'className' => 'Community', 'foreignKey' => 'owner_id', ), ); models/community.php class Community extends AppModel { var $belongsTo = array( 'Owner' => array( 'className' => 'User', 'foreignKey' => 'owner_id', ), ); I made an additional association to the user model and called it owner_id and ever since I've been getting his error: Warning (512): Callback parentNode() not defined in Owner [CORE/cake/ libs/model/behaviors/acl.php, line 64] I have a parentNode function in my user model (mindlessly copied from the tutorial). function parentNode() { if (!$this->id && empty($this->data)) { return null; } if (isset($this->data['User']['group_id'])) { $groupId = $this->data['User']['group_id']; } else { $groupId = $this->field('group_id'); } if (! $groupId) { return null; } else { return array('Group' => array('id' => $groupId)); } } == Any suggestions on how to make that warning message go away? I'm stumped. Check out the new CakePHP Questions site http://cakeqs.org and help others with their CakePHP related questions. You received this message because you are subscribed to the Google Groups "CakePHP" group. To post to this group, send email to cake-php@googlegroups.com To unsubscribe from this group, send email to cake-php+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/cake-php?hl=en
RE: Convert Text to Images to Protect your Email from Search
Why not look at a Helper file and see how its just a simple php file with functions in it. Maybe give it a try? -Original Message- From: hoss7 [mailto:hoss...@gmail.com] Sent: October-10-10 4:46 AM To: CakePHP Subject: Re: Convert Text to Images to Protect your Email from Search yes but i am new in cake,can you convert this code to helper Check out the new CakePHP Questions site http://cakeqs.org and help others with their CakePHP related questions. You received this message because you are subscribed to the Google Groups "CakePHP" group. To post to this group, send email to cake-php@googlegroups.com To unsubscribe from this group, send email to cake-php+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/cake-php?hl=en Check out the new CakePHP Questions site http://cakeqs.org and help others with their CakePHP related questions. You received this message because you are subscribed to the Google Groups "CakePHP" group. To post to this group, send email to cake-php@googlegroups.com To unsubscribe from this group, send email to cake-php+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/cake-php?hl=en
creating a jpeg from a layout
hi everyone, lets say I have a view, showing some text and pictures. is it possible to create a jpg from that view? is there a helper? a tutorial? appreciate your help. thank you!! Check out the new CakePHP Questions site http://cakeqs.org and help others with their CakePHP related questions. You received this message because you are subscribed to the Google Groups "CakePHP" group. To post to this group, send email to cake-php@googlegroups.com To unsubscribe from this group, send email to cake-php+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/cake-php?hl=en
Re: Incorrect redirect after validation error
look at your code its quite obvious your $this->render("admin_edit"); is in the ELSE branch and therefore not triggered if $this->data is not empty you need to put your render statement at the very bottom of your function so it is triggered on if and else! On 9 Okt., 19:24, Sebastian wrote: > Hi all, > > I just started using Cake and really like it. Unfortunately I have an > issue I couldn't solve with Google & co.: > > In my model controller there is an action admin_add which basically > redirects the user to an edit view or saves the added page and > redirects to an overview. It looks like this: > > function admin_add() { > if (!empty($this->data)) { > if ($this->SimplePage->save($this->data)) { > $this->Session->setFlash("Your page has been saved."); > $this->redirect(array("action" => "index")); > } > } else { > $this->set("authors", $this->SimplePage->Author->find("list", > array("fields" => array("displayname"; > > $this->render("admin_edit"); > } > } > > Everything is fine with that except when there is a validation error > in this model (e.g. leaving a field blank which has an notEmpty rule). > Then the following message appears: > > "Error: The view for SimplePagesController::admin_add() was not found. > > Error: Confirm you have created the file: /var/www/mgvmedia/app/views/ > simple_pages/admin_add.ctp" > > Okay, creating the add view would be a simple solution. But it would > be a duplicate of the edit view and I would like to keep the use of > the redirect. Can somebody help and tell me how to this? Thanks a > lot... Check out the new CakePHP Questions site http://cakeqs.org and help others with their CakePHP related questions. You received this message because you are subscribed to the Google Groups "CakePHP" group. To post to this group, send email to cake-php@googlegroups.com To unsubscribe from this group, send email to cake-php+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/cake-php?hl=en
Re: Strange behaviour with saveAll referring to hasOnes....
If really a player_id is necessary, why it works in the first example and why it works in the second one with the Clubs dataset that containts to a player_id field as foreign key... If i need first the player_id for StrokePool and SkillPool the whole saveAll doesn't make sense anymore at all. Then i have to solve it with Transactions manually... The strange is, why it works in the first example, but not in the second... On 9 Okt., 15:40, cricket wrote: > On Fri, Oct 8, 2010 at 2:07 PM, DerBjörn wrote: > > @cricket: > > > Nope, doesn't work. Thanks for your suggestion anyway. > > Generally if you use saveAll() you doesn't need a create(). This only > > is necessary for the normal save(). > > > So i am still looking for a solution! :) Thanks... > > OK, just the first thing that came to mind. But I just looked at it > again and realised that your data array is missing some foreign keys. > The SkillPool and StrokePool arrays should include a player_id value, > I believe. Check out the new CakePHP Questions site http://cakeqs.org and help others with their CakePHP related questions. You received this message because you are subscribed to the Google Groups "CakePHP" group. To post to this group, send email to cake-php@googlegroups.com To unsubscribe from this group, send email to cake-php+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/cake-php?hl=en
Re: Cache actions vs elements
i would include the helper but NOT use the var $cacheAction = '1 hour' now set up your elements and cache them as you did before this way the page itself should not be cached (no cacheAction declared) but the elements should! On 10 Okt., 16:28, calzone wrote: > I believe cache action is used to cache the entire request. > > You would have to use nocache on the sections of your ctp file you > don't want cached > To cache just the elements, you would have to cache the actions > associated with each element. > > On Oct 10, 2:42 am, Sarpidon wrote: > > > > > Hello. > > > I have this layout > > > > > element(header, array('cache'' => true); ?> > > > > element(footer, array('cache'' => true); ?> > > > > > This creates two cache files in tmp/cache/views > > > on a controller I have this: > > function view() { > > var $cacheAction = '1 hour' > > > } > > > for some reason caching View caches the whole page again, including > > header and footer. Is this how is supposed to work? Because this is > > causing problems when the element has dynamic content (like latest > > news). > > I thought caching an action (like view) will only store the contents > > of view.ctp and not the whole layout. > > > Am I missing something? Check out the new CakePHP Questions site http://cakeqs.org and help others with their CakePHP related questions. You received this message because you are subscribed to the Google Groups "CakePHP" group. To post to this group, send email to cake-php@googlegroups.com To unsubscribe from this group, send email to cake-php+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/cake-php?hl=en
Re: Cache actions vs elements
I believe cache action is used to cache the entire request. You would have to use nocache on the sections of your ctp file you don't want cached To cache just the elements, you would have to cache the actions associated with each element. On Oct 10, 2:42 am, Sarpidon wrote: > Hello. > > I have this layout > > > element(header, array('cache'' => true); ?> > > element(footer, array('cache'' => true); ?> > > > This creates two cache files in tmp/cache/views > > on a controller I have this: > function view() { > var $cacheAction = '1 hour' > > } > > for some reason caching View caches the whole page again, including > header and footer. Is this how is supposed to work? Because this is > causing problems when the element has dynamic content (like latest > news). > I thought caching an action (like view) will only store the contents > of view.ctp and not the whole layout. > > Am I missing something? Check out the new CakePHP Questions site http://cakeqs.org and help others with their CakePHP related questions. You received this message because you are subscribed to the Google Groups "CakePHP" group. To post to this group, send email to cake-php@googlegroups.com To unsubscribe from this group, send email to cake-php+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/cake-php?hl=en
Re: what is "Powered by Blazon" in the Bakery?
I would not call it a CMS, it is a article publishing platform built to replace the old Bakery. Expect a few more plugins to be released before the 2 applications are under the MIT license. There are 22 CakeDC developed plugins on github http://cakedc.github.com/ http://github.com/CakeDC and about to 10 more that are planned to be released soon. You can follow http://twitter.com/CakeDC and watch for the announcements. http://bakery.cakephp.org is running Blazon http://ask.cakephp.org is running Inq Soon there will be articles posted @ http://cakedc.com and the Bakery showing how the applications were built and going into details how to customize your installs of them. Kinda makes you wish you had been @ CakeFest this year right? -- Larry E. Masters On Sun, Oct 10, 2010 at 4:04 AM, keymaster wrote: > At the bottom of each bakery page is the new tagline: > > "Powered by Blazon © 2010 Cake Development Corporation" > > Also, there is the following tweet by phpNut: > > @AD7six Blazon and Inq announced @ #CakeFest use all of the plugins > @CakeDC has released. The apps will be released soon. /cc @fahad19 > > Sounds like cakeDC might be releasing a new cakePHP CMS called Blazon, > built using the plugins already released. > > Anyone know more ? Were more details mentioned at cakeFest? > > Check out the new CakePHP Questions site http://cakeqs.org and help others > with their CakePHP related questions. > > You received this message because you are subscribed to the Google Groups > "CakePHP" group. > To post to this group, send email to cake-php@googlegroups.com > To unsubscribe from this group, send email to > cake-php+unsubscr...@googlegroups.comFor > more options, visit this group at > http://groups.google.com/group/cake-php?hl=en > Check out the new CakePHP Questions site http://cakeqs.org and help others with their CakePHP related questions. You received this message because you are subscribed to the Google Groups "CakePHP" group. To post to this group, send email to cake-php@googlegroups.com To unsubscribe from this group, send email to cake-php+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/cake-php?hl=en
Re: Even though $primaryKey is specified, I still get an error
or from controller {{{ $this->ModelName->primaryKey = "somekey"; }}} -- Tilen Majerle http://majerle.eu 2010/10/10 Tilen Majerle > u need to define primary key in Model not in Controller...lol > -- > Tilen Majerle > http://majerle.eu > > > > 2010/10/10 John Andersen > > Please confirm that your code is correct! >> In your function "manage" you are refering to the id attribute of your >> model, which probably should be rally_id! >> Maybe that is the reason CakePHP is refering to the id column! >> Enjoy, >>John >> >> >> On 8 Okt., 19:44, Dan wrote: >> > Here is the code: >> > >> > > > class RalliesController extends AppController { >> > >> > var $name = 'Rallies'; >> > var $primaryKey = 'rally_id'; >> > >> > function manage($id=0) { >> > $this->Rally->id = $id; >> > $this->set('rally', $this->Rally->read()); >> > }} >> > >> > ?> >> > >> > Even though I've specified the primaryKey variable, I still get an >> > error due to the where clause looking for the field name "id" rather >> > than "rally_id". >> >> Check out the new CakePHP Questions site http://cakeqs.org and help >> others with their CakePHP related questions. >> >> You received this message because you are subscribed to the Google Groups >> "CakePHP" group. >> To post to this group, send email to cake-php@googlegroups.com >> To unsubscribe from this group, send email to >> cake-php+unsubscr...@googlegroups.comFor >> more options, visit this group at >> http://groups.google.com/group/cake-php?hl=en >> > > Check out the new CakePHP Questions site http://cakeqs.org and help others with their CakePHP related questions. You received this message because you are subscribed to the Google Groups "CakePHP" group. To post to this group, send email to cake-php@googlegroups.com To unsubscribe from this group, send email to cake-php+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/cake-php?hl=en
Re: Even though $primaryKey is specified, I still get an error
u need to define primary key in Model not in Controller...lol -- Tilen Majerle http://majerle.eu 2010/10/10 John Andersen > Please confirm that your code is correct! > In your function "manage" you are refering to the id attribute of your > model, which probably should be rally_id! > Maybe that is the reason CakePHP is refering to the id column! > Enjoy, >John > > > On 8 Okt., 19:44, Dan wrote: > > Here is the code: > > > > > class RalliesController extends AppController { > > > > var $name = 'Rallies'; > > var $primaryKey = 'rally_id'; > > > > function manage($id=0) { > > $this->Rally->id = $id; > > $this->set('rally', $this->Rally->read()); > > }} > > > > ?> > > > > Even though I've specified the primaryKey variable, I still get an > > error due to the where clause looking for the field name "id" rather > > than "rally_id". > > Check out the new CakePHP Questions site http://cakeqs.org and help others > with their CakePHP related questions. > > You received this message because you are subscribed to the Google Groups > "CakePHP" group. > To post to this group, send email to cake-php@googlegroups.com > To unsubscribe from this group, send email to > cake-php+unsubscr...@googlegroups.comFor > more options, visit this group at > http://groups.google.com/group/cake-php?hl=en > Check out the new CakePHP Questions site http://cakeqs.org and help others with their CakePHP related questions. You received this message because you are subscribed to the Google Groups "CakePHP" group. To post to this group, send email to cake-php@googlegroups.com To unsubscribe from this group, send email to cake-php+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/cake-php?hl=en
Re: Even though $primaryKey is specified, I still get an error
Please confirm that your code is correct! In your function "manage" you are refering to the id attribute of your model, which probably should be rally_id! Maybe that is the reason CakePHP is refering to the id column! Enjoy, John On 8 Okt., 19:44, Dan wrote: > Here is the code: > > class RalliesController extends AppController { > > var $name = 'Rallies'; > var $primaryKey = 'rally_id'; > > function manage($id=0) { > $this->Rally->id = $id; > $this->set('rally', $this->Rally->read()); > }} > > ?> > > Even though I've specified the primaryKey variable, I still get an > error due to the where clause looking for the field name "id" rather > than "rally_id". Check out the new CakePHP Questions site http://cakeqs.org and help others with their CakePHP related questions. You received this message because you are subscribed to the Google Groups "CakePHP" group. To post to this group, send email to cake-php@googlegroups.com To unsubscribe from this group, send email to cake-php+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/cake-php?hl=en
Is this a do-able Cake project?
I am totally new to Cake and am seeking a tool that will help me develop a rather 'hefty' project. This project would be a multi-step form wizard to accept reservations for events. A form for site visitor (name, address, etc), a consent agreement page, a form for activities (time, day, level of experience, other preferences), a page for billing calculation, and a handoff to PayPal or instruction on how to pay by mail. The app would need to have looping capability and I would like to allow the visitor to 'jump to' various points in the process. Different events would have different steps and in some cases different forms depending on the type of event and organization sponsoring it. When the site visitor says they are done, I would like to store the data in a MySQL database, send a verification e-mail to the site visitor, and notify the event organizer by e-mail as well: "You've got a participant!" This seems me that it would be a rather ambitious project for a noob, but before I spend a lot of time climbing this learning curve, I'm hoping those of you experienced in this community can let me know if I can put together this type of app using Cake, or if I'm trying to use the appropriate tool for the job. Thanks in advance for your insights! Check out the new CakePHP Questions site http://cakeqs.org and help others with their CakePHP related questions. You received this message because you are subscribed to the Google Groups "CakePHP" group. To post to this group, send email to cake-php@googlegroups.com To unsubscribe from this group, send email to cake-php+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/cake-php?hl=en
Re: Fresh install, home page (redirect) error
try this... -- Tilen Majerle http://majerle.eu 2010/10/10 i...@fijnmedia.nl > Hello, > > The website runs on a shared hosting platform. Since a week the home > page doesn't work properly. The other pages works as normal. > > I have also tried a fresh install from the cakephp website and I got > still > the same error: > > -- > Error: Redirect:Controller could not be found. > > Error: Create the class Redirect:Controller below in file: app/ > controllers/redirect:controller.php > > class Redirect:Controller extends AppController { > >var $name = 'Redirect:'; > } > > ?> > > - > > And here my cakephp install: > http://cake.fijnmedia.nl/ > > Maybe its something with the htaccess / dispatcher or something, I > really don't know. > > I hope someone can help me. > > Kind regards > > Check out the new CakePHP Questions site http://cakeqs.org and help others > with their CakePHP related questions. > > You received this message because you are subscribed to the Google Groups > "CakePHP" group. > To post to this group, send email to cake-php@googlegroups.com > To unsubscribe from this group, send email to > cake-php+unsubscr...@googlegroups.comFor > more options, visit this group at > http://groups.google.com/group/cake-php?hl=en > Check out the new CakePHP Questions site http://cakeqs.org and help others with their CakePHP related questions. You received this message because you are subscribed to the Google Groups "CakePHP" group. To post to this group, send email to cake-php@googlegroups.com To unsubscribe from this group, send email to cake-php+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/cake-php?hl=en
Fresh install, home page (redirect) error
Hello, The website runs on a shared hosting platform. Since a week the home page doesn't work properly. The other pages works as normal. I have also tried a fresh install from the cakephp website and I got still the same error: -- Error: Redirect:Controller could not be found. Error: Create the class Redirect:Controller below in file: app/ controllers/redirect:controller.php - And here my cakephp install: http://cake.fijnmedia.nl/ Maybe its something with the htaccess / dispatcher or something, I really don't know. I hope someone can help me. Kind regards Check out the new CakePHP Questions site http://cakeqs.org and help others with their CakePHP related questions. You received this message because you are subscribed to the Google Groups "CakePHP" group. To post to this group, send email to cake-php@googlegroups.com To unsubscribe from this group, send email to cake-php+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/cake-php?hl=en
Incorrect redirect after validation error
Hi all, I just started using Cake and really like it. Unfortunately I have an issue I couldn't solve with Google & co.: In my model controller there is an action admin_add which basically redirects the user to an edit view or saves the added page and redirects to an overview. It looks like this: function admin_add() { if (!empty($this->data)) { if ($this->SimplePage->save($this->data)) { $this->Session->setFlash("Your page has been saved."); $this->redirect(array("action" => "index")); } } else { $this->set("authors", $this->SimplePage->Author- >find("list", array("fields" => array("displayname"; $this->render("admin_edit"); } } Everything is fine with that except when there is a validation error in this model (e.g. leaving a field blank which has an notEmpty rule). Then the following message appears: "Error: The view for SimplePagesController::admin_add() was not found. Error: Confirm you have created the file: /var/www/mgvmedia/app/views/ simple_pages/admin_add.ctp" Okay, creating the add view would be a simple solution. But it would be a duplicate of the edit view and I would like to keep the use of the redirect. Can somebody help and tell me how to this? Thanks a lot... Check out the new CakePHP Questions site http://cakeqs.org and help others with their CakePHP related questions. You received this message because you are subscribed to the Google Groups "CakePHP" group. To post to this group, send email to cake-php@googlegroups.com To unsubscribe from this group, send email to cake-php+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/cake-php?hl=en
Help with converting user generated content into cakephp friendly code
Hi, I'm writing a little content manager, and for this i've decided to rewrite the pages controller so that it is database driven. I'm using TinyMCE and markitup as the editors to allow content to be created. My issue is, how do I go about getting cakephp's automagic elements working with this? obviously when a user creates an img tag, I would like to convert this to a HTMLHelper tag to get around relative paths etc, but I also want to be able to allow the users to include elements and other helper code in their pages. Is it a case of parsing the stored page and converting it on the fly to include these elements, or is there a way to safely store and later evaluate saved php code? Check out the new CakePHP Questions site http://cakeqs.org and help others with their CakePHP related questions. You received this message because you are subscribed to the Google Groups "CakePHP" group. To post to this group, send email to cake-php@googlegroups.com To unsubscribe from this group, send email to cake-php+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/cake-php?hl=en
when I pass a variable to controller function, JQuery goes crazy
Hi, this process is about editing a product page that the user created. to enable editing I provide a url and pass the id of that product to my controlllers "edit" function, so cake knows what product data to retrieve: link in my view: echo $html->image("icons/edit.gif", array( "alt" => "edit", 'url' => array('controller' => 'products', 'action' => 'edit', $product[Product][id]) )); controller function: function edit() { $this->Product->id = 66; $this->set('myproduct', $this->Product->read()); } now in my "edit.ctp" view i can retrieve the data from the database of that product, because i passed the id. BUT JQuery wont work then. for example: images dont get rendered anymore in my edit.ctp view. this one I use to open a css popup. i dont see the icon, but there is still a link. OR calling a controllers function with jquery doesnt work anymore $('#title_content').load('processtitle', {data: title_content}).fadeIn('slow'); As soon as I dont pass the id like this 'url' => array('controller' => 'linkables', 'action' => 'edit') ALL WORKS FINE...so how can passing the id to my controller function affect JQuery?? thank you :) Check out the new CakePHP Questions site http://cakeqs.org and help others with their CakePHP related questions. You received this message because you are subscribed to the Google Groups "CakePHP" group. To post to this group, send email to cake-php@googlegroups.com To unsubscribe from this group, send email to cake-php+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/cake-php?hl=en
CakePOWER Services documentation (first review)
Hi coders, I'm developing a CakePHP extension to enhance cake with professional coding needs and requirements. I just published a page to describe a code practice named "service". I please you to read this page and suggest me mistakes because I'm not very up to date with english! http://www.cakepower.org/wiki/doku.php?id=services:index Thank you! Check out the new CakePHP Questions site http://cakeqs.org and help others with their CakePHP related questions. You received this message because you are subscribed to the Google Groups "CakePHP" group. To post to this group, send email to cake-php@googlegroups.com To unsubscribe from this group, send email to cake-php+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/cake-php?hl=en
Cache actions vs elements
Hello. I have this layout element(header, array('cache'' => true); ?> element(footer, array('cache'' => true); ?> This creates two cache files in tmp/cache/views on a controller I have this: function view() { var $cacheAction = '1 hour' } for some reason caching View caches the whole page again, including header and footer. Is this how is supposed to work? Because this is causing problems when the element has dynamic content (like latest news). I thought caching an action (like view) will only store the contents of view.ctp and not the whole layout. Am I missing something? Check out the new CakePHP Questions site http://cakeqs.org and help others with their CakePHP related questions. You received this message because you are subscribed to the Google Groups "CakePHP" group. To post to this group, send email to cake-php@googlegroups.com To unsubscribe from this group, send email to cake-php+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/cake-php?hl=en
what is "Powered by Blazon" in the Bakery?
At the bottom of each bakery page is the new tagline: "Powered by Blazon © 2010 Cake Development Corporation" Also, there is the following tweet by phpNut: @AD7six Blazon and Inq announced @ #CakeFest use all of the plugins @CakeDC has released. The apps will be released soon. /cc @fahad19 Sounds like cakeDC might be releasing a new cakePHP CMS called Blazon, built using the plugins already released. Anyone know more ? Were more details mentioned at cakeFest? Check out the new CakePHP Questions site http://cakeqs.org and help others with their CakePHP related questions. You received this message because you are subscribed to the Google Groups "CakePHP" group. To post to this group, send email to cake-php@googlegroups.com To unsubscribe from this group, send email to cake-php+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/cake-php?hl=en
Re: Convert Text to Images to Protect your Email from Search
by the way: http://book.cakephp.org/view/101/Creating-Helpers with this you MUST be able to do it yourself. On 10 Okt., 10:27, euromark wrote: > cake is still php > and php is still a programming language > > this is one of the easiest things to do actually. > i mean there are like 100 things are more complicated than > throwing this in a helper > and changing the one line of code here. > it's like the 1+1 in first class. > > if you are still not capable, i am afraid you should think of doing > something else. > coding might not be the right thing for you after all > > On 10 Okt., 10:14, Jeremy Burns | Class Outfit > > > > wrote: > > With respect, you've been 'new to CakePHP' for six months now (I checked > > back through the email history). Isn't it about time you stepped up to the > > plate a bit like we all have to? > > > Jeremy Burns > > Class Outfit > > > jeremybu...@classoutfit.comhttp://www.classoutfit.com > > > On 10 Oct 2010, at 08:16, hoss7 wrote: > > > > yes but i am new in cake,can you convert this code to helper > > > > Check out the new CakePHP Questions sitehttp://cakeqs.organdhelp others > > > with their CakePHP related questions. > > > > You received this message because you are subscribed to the Google Groups > > > "CakePHP" group. > > > To post to this group, send email to cake-php@googlegroups.com > > > To unsubscribe from this group, send email to > > > cake-php+unsubscr...@googlegroups.com For more options, visit this group > > > athttp://groups.google.com/group/cake-php?hl=en Check out the new CakePHP Questions site http://cakeqs.org and help others with their CakePHP related questions. You received this message because you are subscribed to the Google Groups "CakePHP" group. To post to this group, send email to cake-php@googlegroups.com To unsubscribe from this group, send email to cake-php+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/cake-php?hl=en
Re: Convert Text to Images to Protect your Email from Search
cake is still php and php is still a programming language this is one of the easiest things to do actually. i mean there are like 100 things are more complicated than throwing this in a helper and changing the one line of code here. it's like the 1+1 in first class. if you are still not capable, i am afraid you should think of doing something else. coding might not be the right thing for you after all On 10 Okt., 10:14, Jeremy Burns | Class Outfit wrote: > With respect, you've been 'new to CakePHP' for six months now (I checked back > through the email history). Isn't it about time you stepped up to the plate a > bit like we all have to? > > Jeremy Burns > Class Outfit > > jeremybu...@classoutfit.comhttp://www.classoutfit.com > > On 10 Oct 2010, at 08:16, hoss7 wrote: > > > > > yes but i am new in cake,can you convert this code to helper > > > Check out the new CakePHP Questions sitehttp://cakeqs.organd help others > > with their CakePHP related questions. > > > You received this message because you are subscribed to the Google Groups > > "CakePHP" group. > > To post to this group, send email to cake-php@googlegroups.com > > To unsubscribe from this group, send email to > > cake-php+unsubscr...@googlegroups.com For more options, visit this group > > athttp://groups.google.com/group/cake-php?hl=en Check out the new CakePHP Questions site http://cakeqs.org and help others with their CakePHP related questions. You received this message because you are subscribed to the Google Groups "CakePHP" group. To post to this group, send email to cake-php@googlegroups.com To unsubscribe from this group, send email to cake-php+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/cake-php?hl=en
Re: Convert Text to Images to Protect your Email from Search
With respect, you've been 'new to CakePHP' for six months now (I checked back through the email history). Isn't it about time you stepped up to the plate a bit like we all have to? Jeremy Burns Class Outfit jeremybu...@classoutfit.com http://www.classoutfit.com On 10 Oct 2010, at 08:16, hoss7 wrote: > yes but i am new in cake,can you convert this code to helper > > Check out the new CakePHP Questions site http://cakeqs.org and help others > with their CakePHP related questions. > > You received this message because you are subscribed to the Google Groups > "CakePHP" group. > To post to this group, send email to cake-php@googlegroups.com > To unsubscribe from this group, send email to > cake-php+unsubscr...@googlegroups.com For more options, visit this group at > http://groups.google.com/group/cake-php?hl=en Check out the new CakePHP Questions site http://cakeqs.org and help others with their CakePHP related questions. You received this message because you are subscribed to the Google Groups "CakePHP" group. To post to this group, send email to cake-php@googlegroups.com To unsubscribe from this group, send email to cake-php+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/cake-php?hl=en
Re: Protect against XSS attacks but keep usual html
that didnt help me much though this http://github.com/josegonzalez/purifiable actually helped. On 9 out, 07:42, euromark wrote: > you might want to type "XSS" in the little textbox up here besides > "Search this group" > and hit enter > > On 9 Okt., 04:47, huoxito wrote: > > > I was wondering if every time I'd display some data I have to Sanatize > > data against XSS attacks? > > > And also It seems to me that cakephp Sanitize Component can't sanatize > > against XSS attacs and keep the sytles of a text > > > How do you clean your data against XSS and still keep styles in text? > > Check out the new CakePHP Questions site http://cakeqs.org and help others with their CakePHP related questions. You received this message because you are subscribed to the Google Groups "CakePHP" group. To post to this group, send email to cake-php@googlegroups.com To unsubscribe from this group, send email to cake-php+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/cake-php?hl=en
Re: Convert Text to Images to Protect your Email from Search
yes but i am new in cake,can you convert this code to helper Check out the new CakePHP Questions site http://cakeqs.org and help others with their CakePHP related questions. You received this message because you are subscribed to the Google Groups "CakePHP" group. To post to this group, send email to cake-php@googlegroups.com To unsubscribe from this group, send email to cake-php+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/cake-php?hl=en