Re: Abridged summary of cake-php@googlegroups.com - 20 Messages in 9 Topics
-- Like Us on FaceBook https://www.facebook.com/CakePHP Find us on Twitter http://twitter.com/CakePHP --- You received this message because you are subscribed to the Google Groups "CakePHP" group. To unsubscribe from this group and stop receiving emails from it, send an email to cake-php+unsubscr...@googlegroups.com. To post to this group, send email to cake-php@googlegroups.com. Visit this group at http://groups.google.com/group/cake-php?hl=en. For more options, visit https://groups.google.com/groups/opt_out.
Controller::postConditions is deprecated .... any suggested alternatives
Hi, Controller::postConditions provides, at least for me, some very useful functionality. While looking through the API documentation I've noticed that this function is deprecated but no mention is made of any suggested alternative. Any ideas that I should consider? Thanks, Jerry -- Like Us on FaceBook https://www.facebook.com/CakePHP Find us on Twitter http://twitter.com/CakePHP --- You received this message because you are subscribed to the Google Groups "CakePHP" group. To unsubscribe from this group and stop receiving emails from it, send an email to cake-php+unsubscr...@googlegroups.com. To post to this group, send email to cake-php@googlegroups.com. Visit this group at http://groups.google.com/group/cake-php?hl=en. For more options, visit https://groups.google.com/groups/opt_out.
Re: Using the Global Event Manager
Boris, Thank you for your reply. Very helpful. I'll give it a try. Jerry On Monday, March 11, 2013 5:39:01 AM UTC-4, Борислав Събев wrote: > > Hey, Jerry. > > You could use bootstrap.php for such event attachments. > What I usually do is to create another file, in the Config folder, called > evenmanagement.php for example, and include it at the end of bootstrap.php. > This way all my events-subscribers etc. logic is in one file. > > You could also put it in AppController, but the method described is > somewhat cleaner. > You could also attach these bindings just for parts of the applications, > but you will need to be very careful of what you do. > > Borislav. > On Sunday, 10 March 2013 21:57:47 UTC+2, Jerry Kita wrote: >> >> Hi, >> >> I'm somewhat new to CakePHP but working to get up to speed quickly. >> >> I'm trying to understand the Events Systems. I've been able to successful >> create events, define listeners, attach listeners and receive event objects >> all within the same Model-Controller-Class. It works well and I've >> managed to get comfortable with it. I've create a ProductsController and >> within that class everything works well. >> >> What I would like to do is define an event in Model-Controller-Class 'A' >> (Product) and create a listener in Model-Controller-Class 'B' (Order). The >> net effect would be that an event object is created as a result of some >> action within 'A' and that event object is passed to 'B'. 'A' to 'A' or 'B' >> to 'B' I can manage. >> >> I've read about the Global Event Manager and that would seem to be the >> ticket. However, the documentation doesn't provide a newcomer like me >> sufficient depth to get it right. The documentation suggests the following: >> >> // In any configuration file or piece of code that executes before the >> eventApp::uses('CakeEventManager', >> 'Event');CakeEventManager::instance()->attach($aCallback, >> 'Model.Order.beforePlace'); >> >> So what configuration file or piece of code is recommended? AppController? >> And where does the function go? In the same file? As you can see >> the answer is not obvious enough to me to figure it out and I can't find any >> examples on the internet. >> >> Any suggestions of links or tutorials or hints would be appreciated. If I've >> not provided enough enough information I'm happy to provide >> that too! >> >> Thanks, Jerry >> >> >> -- Like Us on FaceBook https://www.facebook.com/CakePHP Find us on Twitter http://twitter.com/CakePHP --- You received this message because you are subscribed to the Google Groups "CakePHP" group. To unsubscribe from this group and stop receiving emails from it, send an email to cake-php+unsubscr...@googlegroups.com. To post to this group, send email to cake-php@googlegroups.com. Visit this group at http://groups.google.com/group/cake-php?hl=en. For more options, visit https://groups.google.com/groups/opt_out.
Using the Global Event Manager
Hi, I'm somewhat new to CakePHP but working to get up to speed quickly. I'm trying to understand the Events Systems. I've been able to successful create events, define listeners, attach listeners and receive event objects all within the same Model-Controller-Class. It works well and I've managed to get comfortable with it. I've create a ProductsController and within that class everything works well. What I would like to do is define an event in Model-Controller-Class 'A' (Product) and create a listener in Model-Controller-Class 'B' (Order). The net effect would be that an event object is created as a result of some action within 'A' and that event object is passed to 'B'. 'A' to 'A' or 'B' to 'B' I can manage. I've read about the Global Event Manager and that would seem to be the ticket. However, the documentation doesn't provide a newcomer like me sufficient depth to get it right. The documentation suggests the following: // In any configuration file or piece of code that executes before the eventApp::uses('CakeEventManager', 'Event');CakeEventManager::instance()->attach($aCallback, 'Model.Order.beforePlace'); So what configuration file or piece of code is recommended? AppController? And where does the function go? In the same file? As you can see the answer is not obvious enough to me to figure it out and I can't find any examples on the internet. Any suggestions of links or tutorials or hints would be appreciated. If I've not provided enough enough information I'm happy to provide that too! Thanks, Jerry -- Like Us on FaceBook https://www.facebook.com/CakePHP Find us on Twitter http://twitter.com/CakePHP --- You received this message because you are subscribed to the Google Groups "CakePHP" group. To unsubscribe from this group and stop receiving emails from it, send an email to cake-php+unsubscr...@googlegroups.com. To post to this group, send email to cake-php@googlegroups.com. Visit this group at http://groups.google.com/group/cake-php?hl=en. For more options, visit https://groups.google.com/groups/opt_out.
Who designs the CakePHP web site?
CakePHP web site looks good, who design it? By a company or someone? I am not good at designing outlook... -- Our newest site for the community: CakePHP Video Tutorials http://tv.cakephp.org Check out the new CakePHP Questions site http://ask.cakephp.org and help others with their CakePHP related questions. 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
Can't see the view after create model and controller from console...
Hi guys I am a cakephp newbie and I had trouble to view the files under the view folder through browser. I used cakephp console to bake model, controller and views. (ex: Invoices_controller.php for controller, invoice.php for model and a invoices folders under views folder). According to the tutorial I read, I can access the invoice view by typing http://localhost/myProject/invoices However, the browser showed the file is not found..I have no idea how to solve this problem...Any help would be greatly appreciated. Thanks 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: birthday validate
Thanks Jeremy that's exactly what i wanted to do i mean check wether the user has entered a date greater than the current day ,month through validation but i did fail.Am more of a newbie in programing. On Jun 23, 11:17 am, Jeremy Burns | Class Outfit wrote: > That's going to be hard really. First I'd adapt the code sample (change > maxYear to date('Y') which will give you this year and the previous 100 > (which is probably enough for most people). If you limit the months to (say) > June, how would I enter my birthday which is in a previous year but in July? > I'd say that just about any date picker controller will present the same > challenge unless you can find a really funky ajax one (and hope the user > hasn't disabled javascript). If it were me, I'd assume the user has a degree > of common sense, knows when they were born and check with validation. > > Jeremy Burns > Class Outfit > > jeremybu...@classoutfit.comhttp://www.classoutfit.com > > On 23 Jun 2010, at 09:09, jerry wrote: > > > Thanks for that response but that's not what i was looking for,what i > > need is for the form to only display previous month up to the current > > one.Am trying to not let users be able to enter a birthday that is not > > greater than the current day or month > > > On Jun 23, 10:35 am, Jeremy Burns | Class Outfit > > wrote: > >> Do you mean in the form? If so, yes. For example, this code will give you > >> a date field (without time) where the year is the the range [this year > >> -100] and [this year -18]: > > >> $form->input( > >> 'dob', > >> array( > >> 'type' => 'datetime', > >> 'empty' => true, > >> 'dateFormat' => 'MDY', > >> 'timeFormat' => '', > >> 'minYear' => ( > >> date('Y') - 100 > >> ), > >> 'maxYear' => ( > >> date('Y') - 18 > >> ) > >> ) > >> ) > > >> Jeremy Burns > >> Class Outfit > > >> jeremybu...@classoutfit.comhttp://www.classoutfit.com > > >> On 23 Jun 2010, at 08:14, jerry wrote: > > >>> Is there a way to limit months just like maxYear or minYear? this > >>> would be a lot more easier. > > >>> On Jun 22, 2:28 pm, Jeremy Burns | Class Outfit > >>> wrote: > >>>> Sorry - just read the post properly and my answer wasn't your solution, > >>>> but it can be adapted. The key is to write a function and within that > >>>> compare $check['dob'] with today's date. > > >>>> Jeremy Burns > >>>> Class Outfit > > >>>> jeremybu...@classoutfit.comhttp://www.classoutfit.com > > >>>> On 22 Jun 2010, at 12:12, Jeremy Burns | Class Outfit wrote: > > >>>>> Add this to your model validation (assuming the field you are checking > >>>>> is called 'dob'): > > >>>>> 'dob' => array( > >>>>> 'inRange' => array( > >>>>> 'rule' => 'isAgeInAcceptedRange', > >>>>> 'message' => 'You must be between the ages of 18 and 80.' > >>>>> ) > >>>>> ), > > >>>>> Then add this function to your model: > > >>>>> function isAgeInAcceptedRange($check) { > > >>>>> list($Y,$m,$d) = explode("-", $check['dob']); > > >>>>> $userAge = ( date("md") < $m.$d ? date("Y")-$Y-1 : date("Y")-$Y ); > > >>>>> if ( ($userAge >= 18) && ($userAge <= 80) ): > >>>>> return true; > >>>>> else: > >>>>> return false; > >>>>> endif; > > >>>>> } > > >>>>> Jeremy Burns > >>>>> Class Outfit > > >>>>> jeremybu...@classoutfit.com > >>>>>http://www.classoutfit.com > > >>>>> On 22 Jun 2010, at 10:16, jerry wrote: > > >>>>>> I have been using cakephp for a few weeks now but i have failed to > >>>>>> know how to va
Re: birthday validate
Thanks for that response but that's not what i was looking for,what i need is for the form to only display previous month up to the current one.Am trying to not let users be able to enter a birthday that is not greater than the current day or month On Jun 23, 10:35 am, Jeremy Burns | Class Outfit wrote: > Do you mean in the form? If so, yes. For example, this code will give you a > date field (without time) where the year is the the range [this year -100] > and [this year -18]: > > $form->input( > 'dob', > array( > 'type' => 'datetime', > 'empty' => true, > 'dateFormat' => 'MDY', > 'timeFormat' => '', > 'minYear' => ( > date('Y') - 100 > ), > 'maxYear' => ( > date('Y') - 18 > ) > ) > ) > > Jeremy Burns > Class Outfit > > jeremybu...@classoutfit.comhttp://www.classoutfit.com > > On 23 Jun 2010, at 08:14, jerry wrote: > > > Is there a way to limit months just like maxYear or minYear? this > > would be a lot more easier. > > > On Jun 22, 2:28 pm, Jeremy Burns | Class Outfit > > wrote: > >> Sorry - just read the post properly and my answer wasn't your solution, > >> but it can be adapted. The key is to write a function and within that > >> compare $check['dob'] with today's date. > > >> Jeremy Burns > >> Class Outfit > > >> jeremybu...@classoutfit.comhttp://www.classoutfit.com > > >> On 22 Jun 2010, at 12:12, Jeremy Burns | Class Outfit wrote: > > >>> Add this to your model validation (assuming the field you are checking is > >>> called 'dob'): > > >>> 'dob' => array( > >>> 'inRange' => array( > >>> 'rule' => 'isAgeInAcceptedRange', > >>> 'message' => 'You must be between the ages of 18 and 80.' > >>> ) > >>> ), > > >>> Then add this function to your model: > > >>> function isAgeInAcceptedRange($check) { > > >>> list($Y,$m,$d) = explode("-", $check['dob']); > > >>> $userAge = ( date("md") < $m.$d ? date("Y")-$Y-1 : date("Y")-$Y ); > > >>> if ( ($userAge >= 18) && ($userAge <= 80) ): > >>> return true; > >>> else: > >>> return false; > >>> endif; > > >>> } > > >>> Jeremy Burns > >>> Class Outfit > > >>> jeremybu...@classoutfit.com > >>>http://www.classoutfit.com > > >>> On 22 Jun 2010, at 10:16, jerry wrote: > > >>>> I have been using cakephp for a few weeks now but i have failed to > >>>> know how to validate a date for example a birthday to make sure it's > >>>> now greater than the current date.Could anyone point me to the right > >>>> direction > > >>>> 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 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 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: birthday validate
Is there a way to limit months just like maxYear or minYear? this would be a lot more easier. On Jun 22, 2:28 pm, Jeremy Burns | Class Outfit wrote: > Sorry - just read the post properly and my answer wasn't your solution, but > it can be adapted. The key is to write a function and within that compare > $check['dob'] with today's date. > > Jeremy Burns > Class Outfit > > jeremybu...@classoutfit.comhttp://www.classoutfit.com > > On 22 Jun 2010, at 12:12, Jeremy Burns | Class Outfit wrote: > > > Add this to your model validation (assuming the field you are checking is > > called 'dob'): > > > 'dob' => array( > > 'inRange' => array( > > 'rule' => 'isAgeInAcceptedRange', > > 'message' => 'You must be between the ages of 18 and 80.' > > ) > > ), > > > Then add this function to your model: > > > function isAgeInAcceptedRange($check) { > > > list($Y,$m,$d) = explode("-", $check['dob']); > > > $userAge = ( date("md") < $m.$d ? date("Y")-$Y-1 : date("Y")-$Y ); > > > if ( ($userAge >= 18) && ($userAge <= 80) ): > > return true; > > else: > > return false; > > endif; > > > } > > > Jeremy Burns > > Class Outfit > > > jeremybu...@classoutfit.com > >http://www.classoutfit.com > > > On 22 Jun 2010, at 10:16, jerry wrote: > > >> I have been using cakephp for a few weeks now but i have failed to > >> know how to validate a date for example a birthday to make sure it's > >> now greater than the current date.Could anyone point me to the right > >> direction > > >> 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 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
birthday validate
I have been using cakephp for a few weeks now but i have failed to know how to validate a date for example a birthday to make sure it's now greater than the current date.Could anyone point me to the right direction 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 custom report
I am new to cakephp and the mvc architecture,i want to create a simple reporting form which allows me to query a table of users to know how many users were created at a specific time frame sample table below. CREATE TABLE IF NOT EXISTS `authake_users` ( `id` int(10) unsigned NOT NULL auto_increment, `login` varchar(32) NOT NULL, `password` varchar(50) NOT NULL, `email` varchar(128) NOT NULL, `created` datetime default NULL, `updated` datetime default NULL, PRIMARY KEY (`id`) ) ENGINE=MyISAM DEFAULT CHARSET=latin1 AUTO_INCREMENT=39 ; please can any one show me how to go about this? 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: Custom functions in model?
Hi Brian: Abstract it into helper is not much different in view. In this case I will do like this: App::import('Model', 'Project'); $p = new Project; $p->getTiming(); For your reference. -- Jerry On 5月7日, 上午5時40分, bmcelhany wrote: > Hello, > > I have a model (Project) that has a projected_end_date field. What I'd > like to do in the view is calculate the number of days from the > current date until the projected end date and display how much time is > left (or how many days overdue). This data really only needs to be in > a single view, so I have no problems just embedding the logic directly > into the view...I'm doing that now and it works fine. > > Even though it's working, it just feels wrong. It seems like this > logic really should be in the model itself since it's data (calculated > data and not stored in a table, but still data). > > Is this possible? I tried creating a getTiming() function in my > Project model, but I couldn't figure out any way to call it from my > view: > > echo $project['Project']->getTiming() > echo $project->getTiming() > echo $this->Project->getTiming() > etc. > > I may end up just abstracting the logic out into a helper and calling > that in the view. Any thoughts? Thanks! > > -Brian > > 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
New to cake
Hey am very new to cakephp and am using it for creating a hospital management system for a school as my final year project.i want to use the student registration numbers as their ids but i have meet a problem.when i use the scaffold feature i don't seem to be seeing the id field input box.it's only showed while listing.How do i go about displaying a text box that i can use for manually entering the IDs. Thanks 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
Including Nusoap library
What is the "proper" way to include the Nusoap library into a cakephp datasource? I am attempting to develop a SugarCRM datasource, which uses the nusoap library. --~--~-~--~~~---~--~~ 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 -~--~~~~--~~--~--~---
CakePHP and SugarCRM
Has anyone seen any work on using CakePHP to generate applications to interact with SugarCRM via Soap calls? --~--~-~--~~~---~--~~ 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 -~--~~~~--~~--~--~---
Visual CakePHP??
I an new to CakePHP and I am wondering if there are any visual tool sets that take advantage of Cake? For Example: Talend has a visual tool set for ETL that generates PERL scripts based on the transformation that needs to be done. Just wondering if there is a Visual Studio type environment to grab tools from a toolbox and have the code put into the project. I think that doing this in Eclipse would be preferable. Hope my pondering is not too confusing. Jerry --~--~-~--~~~---~--~~ 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 -~--~~~~--~~--~--~---
HABTM question
I've got a fairly good grasp on the HABTM concept/implementation, but would like to add a twist: Suppose we have users and movies tables. A user can select 'favorites' from the movies table, as many as he/she wishes. So the movies_users table would have an ID, a movie and a user field. Now the twist. What if the user wanted to order the preference the list of his/her movies? Would we add a 'preference' or 'order' field to the HABTM table (movies_users)? If so, how would that be implemented in the controller and/or add form? --~--~-~--~~~---~--~~ 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 [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/cake-php?hl=en -~--~~~~--~~--~--~---
Re: Need help on Install
Also, replying to RichardAtHome, CAKE's installation instructions tell us to: 3.3.1 Development a.. Just place your cake install inside your web server's document root. For example, assuming your web server's document root is /var/www/html, a development setup would look like this on the filesystem: a.. /var/www/html < Also, what is this? It is totally meaningless to me. My web server is apache and has nothing that looks like this on XP. a.. /cake_1_2 a.. /app b.. /cake c.. /docs d.. /index.php e.. /vendors To see your CakePHP application, point your web browser to http://www.example.com/cake_1_2/ If we cannot use http://www.example.com why are they telling us to use it? Pittore - Original Message - From: "RichardAtHome" <[EMAIL PROTECTED]> To: "CakePHP" Sent: Wednesday, September 10, 2008 3:14 AM Subject: Re: Need help on Install > First off read this: http://en.wikipedia.org/wiki/Example.com Example.com is a test domain that you cannot use ;-) On Sep 10, 4:09 am, "Jerry Ross" <[EMAIL PROTECTED]> wrote: > Ooopps! It was a false positive. What I actually accidentally got up and > running washttp://myexample.com > > http://www.example.com > > and > > http://www.example.com/cake_1.1.19.6305/ > > are still not working. However, on the positive side, > > http://localhost/cake_1.1.19.6305/ > > is working and I have a CAKE RAPID DEVELOPMENT screen telling me It found > my > database config file and that cake is able to connect to my database. > > But can someone tell me what I am supposed to see > whenhttp://www.example.comstarts to work? > > All I get is this: > > "You have reached this web page by typing "example.com", "example.net", or > "example.org" into your web browser. > These domain names are reserved for use in documentation and are not > available for registration. See RFC 2606, Section 3." > > I am supposing that was NOT what I was suposed to get. > > Any suggestions? > > Pittore > > - Original Message - > From: "Jerry Ross" <[EMAIL PROTECTED]> > To: > Sent: Tuesday, September 09, 2008 7:57 PM > Subject: Re: Need help on Install > > > Thanks for all your help...I now have example.com up and running and it > > looks good. Now onto programming. > > > Pittore > > - Original Message - > > From: "Donkeybob" <[EMAIL PROTECTED]> > > To: "CakePHP" > > Sent: Tuesday, September 09, 2008 6:48 AM > > Subject: Re: Need help on Install > > > one word . . . .xampp. > > > for xp, it is the beez kneez . . . > > > set up is easy and everything is done for you. apache, mysql, > > php . . . .then edit the httpd.conf to add a virtual host. > > > i run many development sites from this configuration > > > On Sep 8, 8:09 pm, Pittore <[EMAIL PROTECTED]> wrote: > >> I have apache2 up and running on my Windows XP Pro laptop > > >> I have established the following directory structure: > > >> Apache2 > >> htdocs > >> cake > > >> When I typehttp://www.example.com/cakeorhttp://www.example.com/ > >> I get "Page not found" > > >> some kind soul sent me these suggestions: > > >> 1. Create a simple static VirtualHost under Apache based on the > >> simplehost > >> example configuration file > >> C:\www\Apache22\conf\extra\vhosts\_static\simplehost.com.conf > >> a. Resave file as mydomain.com.conf, in the same folder, to duplicate > >> it. > >> b. Update all occurrences of 'simplehost.com' to 'mydomain.com' > >> within. > >> c. Create folder C:\www\Apache22\conf\extra\vhosts\_static\mydomain.com > >> \ > >> d. Create folder C:\www\vhosts\_static\mydomain.com\ to be used as > >> the > >> container for this VirtualHost. > >> e. Create log folder C:\Apache22\logs\mydomain.com\ > > >> 2. Unpack cakephp as folder C:\www\vhosts\_static\mydomain.com\cake\ > > >> 3. Modify this VirtualHost's configuration [mydomain.com.conf] and > >> change > >> DocumentRoot from... > >> DocumentRoot "C:/www/vhosts/_static/mydomain.com" > >> To... > >> DocumentRoot "C:/www/vhosts/_static/mydomain.com/cake/app/webroot" > > >> 4. Restart Apache. > > >> However, I am stuck on step 1a and b...I don't know where to find the > >> file: > > >> 'simplehost.com' > > >> any suggestions? Help...I have been trying to configure cake now for > >> 4 days am getting frustrated. > > >> -- Pittore --~--~-~--~~~---~--~~ 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 [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/cake-php?hl=en -~--~~~~--~~--~--~---
Still working on CAKE install uner xampp
1. xampp is up and running so I have apache and myql running services 2. I still struggling to make any sense of CAKE's arcane installation directions I jave gone back to the CAKE manual: "3.2.2 Permissions: /app/tmp directory for a number of different operations. Model descriptions, cached views, and session information are just a few examples.As such, make sure the /app/tmp directory in your cake installation is writable by the web server user." I looked at permissions on xampp and all subdirectories and see it is "read only." Assuming this is source of my installation issues, I attempted to uncheck the read only and apply. Nothing changes. Ditto for CAKE directory and its subdirectories. Going to "advanced" properties doesn't help. I get warnings about some sort of Wizard that will be jeopardized if I allow sharing and went ahead anyway. Apparently these files are attached to a domain and XP will not allow me to change the security and remove the read only status. Any suggestions? Pittore - Original Message - From: "RichardAtHome" <[EMAIL PROTECTED]> To: "CakePHP" Sent: Wednesday, September 10, 2008 3:14 AM Subject: Re: Need help on Install > First off read this: http://en.wikipedia.org/wiki/Example.com Example.com is a test domain that you cannot use ;-) On Sep 10, 4:09 am, "Jerry Ross" <[EMAIL PROTECTED]> wrote: > Ooopps! It was a false positive. What I actually accidentally got up and > running washttp://myexample.com > > http://www.example.com > > and > > http://www.example.com/cake_1.1.19.6305/ > > are still not working. However, on the positive side, > > http://localhost/cake_1.1.19.6305/ > > is working and I have a CAKE RAPID DEVELOPMENT screen telling me It found > my > database config file and that cake is able to connect to my database. > > But can someone tell me what I am supposed to see > whenhttp://www.example.comstarts to work? > > All I get is this: > > "You have reached this web page by typing "example.com", "example.net", or > "example.org" into your web browser. > These domain names are reserved for use in documentation and are not > available for registration. See RFC 2606, Section 3." > > I am supposing that was NOT what I was suposed to get. > > Any suggestions? > > Pittore > > - Original Message - > From: "Jerry Ross" <[EMAIL PROTECTED]> > To: > Sent: Tuesday, September 09, 2008 7:57 PM > Subject: Re: Need help on Install > > > Thanks for all your help...I now have example.com up and running and it > > looks good. Now onto programming. > > > Pittore > > - Original Message - > > From: "Donkeybob" <[EMAIL PROTECTED]> > > To: "CakePHP" > > Sent: Tuesday, September 09, 2008 6:48 AM > > Subject: Re: Need help on Install > > > one word . . . .xampp. > > > for xp, it is the beez kneez . . . > > > set up is easy and everything is done for you. apache, mysql, > > php . . . .then edit the httpd.conf to add a virtual host. > > > i run many development sites from this configuration > > > On Sep 8, 8:09 pm, Pittore <[EMAIL PROTECTED]> wrote: > >> I have apache2 up and running on my Windows XP Pro laptop > > >> I have established the following directory structure: > > >> Apache2 > >> htdocs > >> cake > > >> When I typehttp://www.example.com/cakeorhttp://www.example.com/ > >> I get "Page not found" > > >> some kind soul sent me these suggestions: > > >> 1. Create a simple static VirtualHost under Apache based on the > >> simplehost > >> example configuration file > >> C:\www\Apache22\conf\extra\vhosts\_static\simplehost.com.conf > >> a. Resave file as mydomain.com.conf, in the same folder, to duplicate > >> it. > >> b. Update all occurrences of 'simplehost.com' to 'mydomain.com' > >> within. > >> c. Create folder C:\www\Apache22\conf\extra\vhosts\_static\mydomain.com > >> \ > >> d. Create folder C:\www\vhosts\_static\mydomain.com\ to be used as > >> the > >> container for this VirtualHost. > >> e. Create log folder C:\Apache22\logs\mydomain.com\ > > >> 2. Unpack cakephp as folder C:\www\vhosts\_static\mydomain.com\cake\ > > >> 3. Modify this VirtualHost's configuration [mydomain.com.conf] and > >> change > >> DocumentRoot from... > >> DocumentRoot "C:/www/vhosts/_static/mydomain.com" > >> To... > >> DocumentRoot "C:/www/vhosts/_static/mydomain.com/cake/app/webroot" > > >> 4. Restart Apache. > > >> However, I am stuck on step 1a and b...I don't know where to find the > >> file: > > >> 'simplehost.com' > > >> any suggestions? Help...I have been trying to configure cake now for > >> 4 days am getting frustrated. > > >> -- Pittore --~--~-~--~~~---~--~~ 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 [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/cake-php?hl=en -~--~~~~--~~--~--~---
Re: Need help on Install
Ooopps! It was a false positive. What I actually accidentally got up and running was http://myexample.com http://www.example.com and http://www.example.com/cake_1.1.19.6305/ are still not working. However, on the positive side, http://localhost/cake_1.1.19.6305/ is working and I have a CAKE RAPID DEVELOPMENT screen telling me It found my database config file and that cake is able to connect to my database. But can someone tell me what I am supposed to see when http://www.example.com starts to work? All I get is this: "You have reached this web page by typing "example.com", "example.net", or "example.org" into your web browser. These domain names are reserved for use in documentation and are not available for registration. See RFC 2606, Section 3." I am supposing that was NOT what I was suposed to get. Any suggestions? Pittore ----- Original Message - From: "Jerry Ross" <[EMAIL PROTECTED]> To: Sent: Tuesday, September 09, 2008 7:57 PM Subject: Re: Need help on Install > > Thanks for all your help...I now have example.com up and running and it > looks good. Now onto programming. > > Pittore > - Original Message - > From: "Donkeybob" <[EMAIL PROTECTED]> > To: "CakePHP" > Sent: Tuesday, September 09, 2008 6:48 AM > Subject: Re: Need help on Install > > > > one word . . . .xampp. > > for xp, it is the beez kneez . . . > > set up is easy and everything is done for you. apache, mysql, > php . . . .then edit the httpd.conf to add a virtual host. > > i run many development sites from this configuration > > On Sep 8, 8:09 pm, Pittore <[EMAIL PROTECTED]> wrote: >> I have apache2 up and running on my Windows XP Pro laptop >> >> I have established the following directory structure: >> >> Apache2 >> htdocs >> cake >> >> When I typehttp://www.example.com/cake orhttp://www.example.com/ >> I get "Page not found" >> >> some kind soul sent me these suggestions: >> >> 1. Create a simple static VirtualHost under Apache based on the >> simplehost >> example configuration file >> C:\www\Apache22\conf\extra\vhosts\_static\simplehost.com.conf >> a. Resave file as mydomain.com.conf, in the same folder, to duplicate >> it. >> b. Update all occurrences of 'simplehost.com' to 'mydomain.com' >> within. >> c. Create folder C:\www\Apache22\conf\extra\vhosts\_static\mydomain.com >> \ >> d. Create folder C:\www\vhosts\_static\mydomain.com\ to be used as >> the >> container for this VirtualHost. >> e. Create log folder C:\Apache22\logs\mydomain.com\ >> >> 2. Unpack cakephp as folder C:\www\vhosts\_static\mydomain.com\cake\ >> >> 3. Modify this VirtualHost's configuration [mydomain.com.conf] and >> change >> DocumentRoot from... >> DocumentRoot "C:/www/vhosts/_static/mydomain.com" >> To... >> DocumentRoot "C:/www/vhosts/_static/mydomain.com/cake/app/webroot" >> >> 4. Restart Apache. >> >> However, I am stuck on step 1a and b...I don't know where to find the >> file: >> >> 'simplehost.com' >> >> any suggestions? Help...I have been trying to configure cake now for >> 4 days am getting frustrated. >> >> -- Pittore > > > > --~--~-~--~~~---~--~~ 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 [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/cake-php?hl=en -~--~~~~--~~--~--~---
Re: Need help on Install
Thanks for all your help...I now have example.com up and running and it looks good. Now onto programming. Pittore - Original Message - From: "Donkeybob" <[EMAIL PROTECTED]> To: "CakePHP" Sent: Tuesday, September 09, 2008 6:48 AM Subject: Re: Need help on Install one word . . . .xampp. for xp, it is the beez kneez . . . set up is easy and everything is done for you. apache, mysql, php . . . .then edit the httpd.conf to add a virtual host. i run many development sites from this configuration On Sep 8, 8:09 pm, Pittore <[EMAIL PROTECTED]> wrote: > I have apache2 up and running on my Windows XP Pro laptop > > I have established the following directory structure: > > Apache2 > htdocs > cake > > When I typehttp://www.example.com/cake orhttp://www.example.com/ > I get "Page not found" > > some kind soul sent me these suggestions: > > 1. Create a simple static VirtualHost under Apache based on the > simplehost > example configuration file > C:\www\Apache22\conf\extra\vhosts\_static\simplehost.com.conf > a. Resave file as mydomain.com.conf, in the same folder, to duplicate > it. > b. Update all occurrences of 'simplehost.com' to 'mydomain.com' > within. > c. Create folder C:\www\Apache22\conf\extra\vhosts\_static\mydomain.com > \ > d. Create folder C:\www\vhosts\_static\mydomain.com\ to be used as > the > container for this VirtualHost. > e. Create log folder C:\Apache22\logs\mydomain.com\ > > 2. Unpack cakephp as folder C:\www\vhosts\_static\mydomain.com\cake\ > > 3. Modify this VirtualHost's configuration [mydomain.com.conf] and > change > DocumentRoot from... > DocumentRoot "C:/www/vhosts/_static/mydomain.com" > To... > DocumentRoot "C:/www/vhosts/_static/mydomain.com/cake/app/webroot" > > 4. Restart Apache. > > However, I am stuck on step 1a and b...I don't know where to find the > file: > > 'simplehost.com' > > any suggestions? Help...I have been trying to configure cake now for > 4 days am getting frustrated. > > -- Pittore --~--~-~--~~~---~--~~ 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 [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/cake-php?hl=en -~--~~~~--~~--~--~---
Re: Need help on Install
Thanks...install of xampp went like a charm...am running XAMPP Control Panal Application and see Apache, MySQL, FileZilla, and Mercury...but where is CAKE? or am I trying to have my cake and eat it too? Cheers, Pittore - Original Message - From: "Donkeybob" <[EMAIL PROTECTED]> To: "CakePHP" Sent: Tuesday, September 09, 2008 6:48 AM Subject: Re: Need help on Install one word . . . .xampp. for xp, it is the beez kneez . . . set up is easy and everything is done for you. apache, mysql, php . . . .then edit the httpd.conf to add a virtual host. i run many development sites from this configuration On Sep 8, 8:09 pm, Pittore <[EMAIL PROTECTED]> wrote: > I have apache2 up and running on my Windows XP Pro laptop > > I have established the following directory structure: > > Apache2 > htdocs > cake > > When I typehttp://www.example.com/cake orhttp://www.example.com/ > I get "Page not found" > > some kind soul sent me these suggestions: > > 1. Create a simple static VirtualHost under Apache based on the > simplehost > example configuration file > C:\www\Apache22\conf\extra\vhosts\_static\simplehost.com.conf > a. Resave file as mydomain.com.conf, in the same folder, to duplicate > it. > b. Update all occurrences of 'simplehost.com' to 'mydomain.com' > within. > c. Create folder C:\www\Apache22\conf\extra\vhosts\_static\mydomain.com > \ > d. Create folder C:\www\vhosts\_static\mydomain.com\ to be used as > the > container for this VirtualHost. > e. Create log folder C:\Apache22\logs\mydomain.com\ > > 2. Unpack cakephp as folder C:\www\vhosts\_static\mydomain.com\cake\ > > 3. Modify this VirtualHost's configuration [mydomain.com.conf] and > change > DocumentRoot from... > DocumentRoot "C:/www/vhosts/_static/mydomain.com" > To... > DocumentRoot "C:/www/vhosts/_static/mydomain.com/cake/app/webroot" > > 4. Restart Apache. > > However, I am stuck on step 1a and b...I don't know where to find the > file: > > 'simplehost.com' > > any suggestions? Help...I have been trying to configure cake now for > 4 days am getting frustrated. > > -- Pittore --~--~-~--~~~---~--~~ 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 [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/cake-php?hl=en -~--~~~~--~~--~--~---
Re: Is there any good way to make url difficult to guess
OK, maybe I know what to do now. :) On 8月27日, 上午3時28分, aranworld <[EMAIL PROTECTED]> wrote: > I agree wtih benjam that URL obscurity is not a good way to protect > content that could otherwise be protected through something like ACL. > > The reason why the Flickr example is interesting is because they are > actually using URL obscurity to protect images, which like any binary > downloadable file are much harder to protect via server side > scripting. > > All Flickr's images -- even ones labelled private -- can be viewed if > you know the direct URL. They are actually relying solely on complex > URL to protect their images. So checking out their system might > provide some direction on what it takes to achieve this level of > security -- as imperfect as it ultimately is. > > -Aran > > On Aug 26, 7:08 am, benjam <[EMAIL PROTECTED]> wrote: > > > You should probably take a look at why you want to keep people from > > viewing certain URLs. > > > If it's from a security standpoint, you should probably have some > > server side scripting that blocks the URL, not just a "If there's no > > link, then I hope they can't guess my URL" security system. > > > And if you are trying to block content, this falls under a similar > > idea. Give users levels (or some other flag that shows they are > > allowed to access that particular data, or image, or whatnot), and if > > they don't have the right level, block the content server-side. > > > You should never trust a fancy URL to block content from users. > > > And then you can use the solutions given by others to further increase > > your security. > > > On Aug 25, 9:24 pm, Jerry <[EMAIL PROTECTED]> wrote: > > > > Hi: > > > > is there any way to make application url difficult to guess? > > > since cake reads record by id, it also provides a way for user to > > > guess the record to retrieve. --~--~-~--~~~---~--~~ 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 [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/cake-php?hl=en -~--~~~~--~~--~--~---
Is there any good way to make url difficult to guess
Hi: is there any way to make application url difficult to guess? since cake reads record by id, it also provides a way for user to guess the record to retrieve. --~--~-~--~~~---~--~~ 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 [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/cake-php?hl=en -~--~~~~--~~--~--~---
Cache slows my App
Hi: Here is my app structure: /approot - cake cake core - appmy app - files uploaded files - controllers - models ... Theses days I upgraded to 1.2RC2 and found my app slows down while doing cache. /approot/app/tmp/cache/persistent/cake_core_dir_map is big (46KB) and takes much time to process and sometimes even makes my app run out maximum execution time (60 secs) I am worrying if my files/ dir grow and with many files and sub- directories this cache mechanism will kill my app. Is there anyway to improve this? Your help is appreciated. thanks, Jerry http://www.fonsen.com.tw/ --~--~-~--~~~---~--~~ 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 [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/cake-php?hl=en -~--~~~~--~~--~--~---
Re: Year Field Save Error
Hello bakers: Finally I found solution on trac.cakephp.org. Thanks to trac! The solution I found is on https://trac.cakephp.org/changeset/3490 In my situation (using 1.1.8.3544 cakephp), the only file I need to modify is cake/libs/controller/controller.php and just added the code as posted in trac. Thanks trac, thanks cake. Jerry -- http://www.fonsen.com.tw/ --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Cake PHP" group. To post to this group, send email to cake-php@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/cake-php -~--~~~~--~~--~--~---
Re: Year Field Save Error
One more strange thing: If I use bake.php to generate the code, the field with field type 'year' will not be generated by bake.php script. The name of the field is 'yr'. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Cake PHP" group. To post to this group, send email to cake-php@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/cake-php -~--~~~~--~~--~--~---
Re: CakePHP scaffold & UTF8
So far the best solution I found is : http://groups.google.com/group/cake-php/browse_thread/thread/902d931ff87eb8ac/c4ca2c14891df179#c4ca2c14891df179 --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Cake PHP" group. To post to this group, send email to cake-php@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/cake-php -~--~~~~--~~--~--~---
CakePHP scaffold & UTF8
Hello Bakers: I found something interesting in CakePHP. It's about utf8. Some bakers suggest below approach that makes utf8 works in CakePHP. class AppModel extends Model{ function __construct($id=false, $table=null, $ds=null){ parent::__construct(); $this->query("SET NAMES 'utf8'"); } } It does work. The UTF8 characters can be displayed correctly. In my apps using scaffold, Index can list the DB tables correctly. But when I click Edit (or View) into the item, nothing can be displayed. Everything is shown, but every column data is empty. Does anybody have such experience? Jerry -- http://www.fonsen.com.tw/ --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Cake PHP" group. To post to this group, send email to cake-php@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/cake-php -~--~~~~--~~--~--~---
Re: Year Field Save Error
Hi Eric: Thanks for your reply. I tried to set the column name to year_num, but still not working. Field type is still year. Jerry -- http://www.fonsen.com.tw/ --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Cake PHP" group. To post to this group, send email to cake-php@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/cake-php -~--~~~~--~~--~--~---
Year Field Save Error
Hi Bakers: When I try to bake my app (scaffold is on) with a field type "year" (also name as "year"), I found the data cannot be saved (the selection did show up and I select the year). The results always appear as ''. When I check the html source generated by cakephp, the field name is Model/year_year, not just Model/year, is that the root cause of saving error? Jerry http://www.fonsen.com.tw/ --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Cake PHP" group. To post to this group, send email to cake-php@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/cake-php -~--~~~~--~~--~--~---
Year Field Save Error
Hello Bakers: My app has one table with field name/type as year/year. It can be display with scaffold on. But only the year can't be saved. (result: '') When I look at the html page source, the input name is year_year, not year. Is it a bug? or is any thing necessary to be configured first? Jerry Lee -- http://www.fonsen.com.tw/ --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Cake PHP" group. To post to this group, send email to cake-php@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/cake-php -~--~~~~--~~--~--~---