Re: CakePHP on AWS using Elastic Beanstalk
Did you find answer to this or figure it out yet? I am having the same issue. I get a completely blank screen. On Wednesday, September 12, 2012 10:41:39 AM UTC-4, Mohammad Naghavi wrote: > > Hi everybody, > > I'm using the Amazon Web Services for the first time and want to launch an > application written on CakePHP 2.2 on the cloud. I tried once but the > environment failed to be set to healthy. I searched for any resources on > the web if any body has the experience of deploying a Cake app on AWS using > elastic beanstalk but found nothing. > does anybody here has done similar action before? can anybody help me > deploying the app? > > regards, > Mohammad > -- 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 post to this group, send email to cake-php@googlegroups.com. To unsubscribe from this group, send email to cake-php+unsubscr...@googlegroups.com. Visit this group at http://groups.google.com/group/cake-php?hl=en.
Automagic Form Elements---Column Type
my Message model includes fields for a auther (varchar). I use the input() method of the FormHelper to create appropriate inputs for all of these form fields. create(); ?> input('auther'); ... ?> end('Add'); ?> But the Column Type is textarea, in fact it‘s varchar. I don't know why. Somebody help me? --~--~-~--~~~---~--~~ 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: PHP 5.3.0 deprecated warnings
Are you sure? On 8月14日, 下午11时15分, anders als wrote: > ### Solution > ## > Use the 1.3 dev release of cakephp, there is no other way to use > PHP5.3 and CakePHP than this one. > ### Solution > ## > > On 12 Jul., 06:31, 10drill wrote: > > > > > I've just upgraded PHP to 5.3.0 on my development server and found all > > of my Cake sites have about 20 warning messages starting with > > "Deprecated:Assigningthereturnvalueofnewbyreferenceis > >deprecated...". Changes to the error_reporting configuration in > > php.ini could not get rid of them. With cake debug level at 1 or > > higher, the only fix I've been able to come up with is bad as it > > requires a (tiny) change to core file cake/libs/configure.php. > > Changing line 295 from error_reporting(E_ALL); to error_reporting > > (E_ALL ^ E_DEPRECATED); and then adding error_reporting(E_ALL ^ > > E_DEPRECATED); to the top of app/webroot/index.php removes all of the > > warnings. Does anyone have a better solution?- 隐藏被引用文字 - > > - 显示引用的文字 - --~--~-~--~~~---~--~~ 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 -~--~~~~--~~--~--~---
Query Help
Yestoday,i installed cakephp . Then,i visited http://127.0.0.1。 it displayed : Deprecated: Assigning the return value of new by reference is deprecated in E:\Program Files\Apache Software Foundation \Apache2.2\htdocs\cake-1.2\cake\libs\i18n.php on line 109 Deprecated: Assigning the return value of new by reference is deprecated in E: \Program Files\Apache Software Foundation\Apache2.2\htdocs \cake-1.2\cake\libs\i18n.php on line 110 Deprecated: Function split() is deprecated in E:\Program Files\Apache Software Foundation \Apache2.2\htdocs\cake-1.2\cake\libs\l10n.php on line 396 Release Notes for CakePHP 1.2.4.8284. my php vision is php v5.3 --~--~-~--~~~---~--~~ 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: about multiple select
Thanks. I've only checked the manual, and I fount that it seemed to be for some old edition of CakePHP. There is no description of selectTag, only an example in the "Saving hasAndBelongsToMany". The code is:selectTag('Tag/Tag', $tags, null, array('multiple' => 'multiple')) ?> Is there any newer CakePHP manual? --~--~-~--~~~---~--~~ 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 -~--~~~~--~~--~--~---
about multiple select
PHP: selectTag('Tag/Tag', array(1,3,4), null, array('multiple' => 'multiple'));?> Page Source: 1 3 4 Why does the SELET have an empty option? How to make it come without any empty option? --~--~-~--~~~---~--~~ 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: I don't want to associations in every queries, how?
Sorry for my poor English. Thank you all. --~--~-~--~~~---~--~~ 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 -~--~~~~--~~--~--~---
I don't want to associations in every queries, how?
There are some associations in my app. But I don't need to use it every time. What should I do? --~--~-~--~~~---~--~~ 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 -~--~~~~--~~--~--~---
How to execute "right join" queries in cake?
for example: SELECT A.*,count(case when B.id is NULL then NULL else 1 end) as num FROM B right join A on B.a_id=A.id group by A.id I know i can use $model->execute($sql). Is there any other ways, like "left join" can use $belongsTo? --~--~-~--~~~---~--~~ 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: How to stop ajax submition?
Great! I found the solution by myself. Put the js codes for validation into $option['before'] instead of the form's attribute "onsubmit" can solve my problerm. Like this: '/news/add', 'update' =>'newListBox', 'before'=>'MyprettyValidateFunction();' 'complete'=>$ajax->remoteFunction(array('url'=>'/news/show/latest','update'=>'newsContent')), 'class'=>'btn' ); echo $ajax->submit('Post', $options); ?> if MyprettyValidateFunction() returns false, no submition happends. --~--~-~--~~~---~--~~ 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: How to stop ajax submition?
Great! I found the solution by myself. Put the js codes for validation into $option['before'] instead of the form's attribute "onsubmit" can solve my problerm. Like this: '/news/add', 'update' =>'newListBox', 'before'=>'MyprettyValidateFunction();' 'complete'=>$ajax->remoteFunction(array('url'=>'/news/show/latest','update'=>'newsContent')), 'class'=>'btn' ); echo $ajax->submit('Post', $options); ?> if MyprettyValidateFunction() returns false, no submition happend. --~--~-~--~~~---~--~~ 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: How to stop ajax submition?
here's my code: but no messagebox shown. the form was not really submiied. here's the "submit" button: '/news/add', 'update' =>'newListBox', 'complete'=>$ajax->remoteFunction(array('url'=>'/news/show/latest','update'=>'newsContent')), 'class'=>'btn' ); echo $ajax->submit('Post', $options); ?> --~--~-~--~~~---~--~~ 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: How to stop ajax submition?
I am sorry to say that this way doesn't works either. If I "submit" a form by using ajax, the form will not be really submitted. So the event submit will not be activated. --~--~-~--~~~---~--~~ 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: How to stop ajax submition?
But your way also needs a request. I want to do it at the client. --~--~-~--~~~---~--~~ 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 -~--~~~~--~~--~--~---
How to stop ajax submition?
I want to use javascript to validate some fields before I submit an ajax form. How? --~--~-~--~~~---~--~~ 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: 有在中国的朋友吗?一起研究 CAKE
I think it will be very hot in July and August. But Beijing is not like some citys in the south of China, such as Wuhan, Nanchang. Most summer evenings and nights in Beijing is not too hot, even a little cool. --~--~-~--~~~---~--~~ 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: 有在中国的朋友吗?一起研究 CAKE
to zend: Speaking other languages seems to be not very polite here. --~--~-~--~~~---~--~~ 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: 有在中国的朋友吗?一起研究 CAKE
Yes. I am in Beijing. --~--~-~--~~~---~--~~ 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: 有在中国的朋友吗?一起研究 CAKE
me but i am a newbie. --~--~-~--~~~---~--~~ 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 -~--~~~~--~~--~--~---
Questions on dealing with bad URLs.
If I set debug level to 0, "error 404" shows if I input an error URL. Because there are no matching controllers or actions. Can we make it redirect to another URL(use default controller or action) instead of showing "error 404"? For example, /pages/badaction can be redirected to /pages/index. --~--~-~--~~~---~--~~ 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 -~--~~~~--~~--~--~---
How to refresh fields automatically?
I wan't to make some fields in the page refresh automatically after the page loads. I know how to use $ajax->link and $ajax->observeField. But I don't know how to implement it. --~--~-~--~~~---~--~~ 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: Questions from a newbie
"It needs a table, but doesn't store any data? That doesn't seem to make sense - I need a little clarification here. " Sorry for my bad description. I asked the question because I didn't know how to create a controller without a model before. Now I know how to deal with it. If I don't need model, I can set $uses of the controller to null. And if I don't need database table, I can set $useTable of the model to null. Thank you! --~--~-~--~~~---~--~~ 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: Questions from a newbie
And I have another question. All my views are included in a CakePHP's "frame". Every view has a CakePHP's Logo and some links at the top and some little icons at the bottom. How can I remove it? --~--~-~--~~~---~--~~ 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 -~--~~~~--~~--~--~---
Questions from a newbie
Hello, I am a newbie. I have some questions to ask. I read "The Cake Blog Tutorial" and knew how to build a simple application like this example. But I don't know how to build some complexier applications, such as an "Article Manager". An "Article Manager" has these pages: Index Page, including list of the last several articles in every category, a list of categories and a list of top 10(for example) articles Article Page, including the article content, a list of categories, a list of other articles in the same category Every page has lots of informations. I don't know how to implement it with CakePHP. Do I need to create a model and a controller for every page? This needs a table called "pages", but I don't need to store any data for pages in database. And if i create a page controller, Shall I have to get all data in index page in the function "index" of the controller? Categories and articles also have their own models and controllers. and how can I use them in the page controller's function "index"? Sorry for my poor english, I wish you can understand my words. --~--~-~--~~~---~--~~ 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 -~--~~~~--~~--~--~---