How do I install the latest version(3.2.3) of Cakephp on shared hosting?
<http://stackoverflow.com/questions/35770133/how-do-i-install-the-latest-version3-2-3-of-cakephp-on-shared-hosting>
Can anyone help me to install latest version of Cakephp on shared hosting.
The latest Cakephp
Okay, problem solved.
The _ext is not needed, removed it.
added the line:
$this->RequestHandler->renderAs($this, 'json');
Now renders as a JsonView and the _Serialize is automatically detected and
no template file required.
Regards,
--Kevin
On Wednesday, October 14, 2015 at 2:02:24 PM U
I discovered a bug in the Route.php file.
the reg expression used for finding extensions only works if no parameters
are passed in the URL.
I have temporarily modified my Routes.php file to find the extension
anywhere in the string and used str_replace to remove the .json from the
url and I no l
code that generated the URL:
$url = $this->Url->build(['controller' => 'Purchases', 'action' =>
'get_sales_people_select_list','_ext'=>'json']);
$url = $url . '/47';
The generated URL:
/purchases/get-sales-people-select-list.json/47
Is this not correct?
On Wed, Oct 14, 2015 at 4:40 PM, Anthony G
Did you correctly specify the data type json in your ajax call ?
Le 14 oct. 2015 09:02, "heavyKevy" a écrit :
> I have gone through the documentation, which is a bit too vague, and tried
> many things, but I still am getting an error that the template file is
> missing.
>
> I had this working sen
I have gone through the documentation, which is a bit too vague, and tried
many things, but I still am getting an error that the template file is
missing.
I had this working sending back a json response in 3.0 using ext='json',
yet after updating to 3.1 it is broken.
I checked the migration
SessionHelper is deprecated;
use $this->request->session()->read('Auth.User.id');
On Monday, December 8, 2014 at 2:29:35 AM UTC-8, euromark wrote:
>
> if ($this->Session>check('Auth.User.id') {}
>
>
> Am Montag, 8. Dezember 2014 02:32:28 UTC+1 schrieb frocco:
>>
>> I want to check in my default l
On baking the controller and model bin/cake bake controller --prefix admin
users and bin/cake bake template --prefix admin users,it creates the admin
folder, in it it creates the folder for users, then it includes the files,
on executing the http://127.0.0.1:/admin/users it gives error of
I think it is worth adding to euromark's reply with an example full command
because for a few minutes I struggled until I looked into --help
bin/cake bake controller --prefix admin users
I had erroneously thought that
--prefix admin
I was the thing on the command line
CakePHP 3 rocks
Thanks
Thank you
On Wednesday, January 28, 2015 at 11:22:26 AM UTC-5, frocco wrote:
>
> Hello,
>
> I see cakephp 3 has been updated, how do I update my current app that is
> using an older version of cakephp 3?
>
> Thanks
>
--
Like Us on FaceBook https://www.facebook.com/Ca
For more help, read this
post: http://mark-story.com/posts/view/using-composer-in-cakephp-3-0
On Wednesday, January 28, 2015 at 9:52:26 PM UTC+5:30, frocco wrote:
>
> Hello,
>
> I see cakephp 3 has been updated, how do I update my current app that is
> using an older versi
You can do composer.phar update
Em qua, 28 de jan de 2015 14:22, frocco escreveu:
> Hello,
>
> I see cakephp 3 has been updated, how do I update my current app that is
> using an older version of cakephp 3?
>
> Thanks
>
> --
> Like Us on FaceBook https://www.facebo
Hello,
I see cakephp 3 has been updated, how do I update my current app that is
using an older version of cakephp 3?
Thanks
--
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
This is an example of mocking a
query:
https://github.com/cakephp/cakephp/blob/3.0/tests/TestCase/ORM/Association/HasManyTest.php#L181
You will probably need to mock the Table's find or query() method to be
able to inject your mocked query when the method is called.
--
Like Us on FaceBook http
tor']);
if (!$config['unique']) {
return $slug;
}
$results = $this->_scope($this->_table->find())
->select(['id', $config['slug']])
->where([$config['slug'] =&
Thank you
On Monday, December 8, 2014 4:51:56 PM UTC-5, euromark wrote:
>
> Yes, you can simply use Auth->allow(listofactionnames) as documented to
> make the non admin actions public.
> either in each controller, or globally in your app controller
>
>
> Am Montag, 8. Dezember 2014 19:28:17 UTC+1
Yes, you can simply use Auth->allow(listofactionnames) as documented to
make the non admin actions public.
either in each controller, or globally in your app controller
Am Montag, 8. Dezember 2014 19:28:17 UTC+1 schrieb frocco:
>
> I have another question.
>
> I used bake with the prefix admin a
I have another question.
I used bake with the prefix admin and now need to protect each controller
to allow admin only.
Is this done in the beforeFilter?
What is the correct syntax?
Thanks
--
Like Us on FaceBook https://www.facebook.com/CakePHP
Find us on Twitter http://twitter.com/CakePHP
Thank you for your help.
This seems to be working.
if($this->Session->check('Auth.User.role') == 'admin')
On Monday, December 8, 2014 9:09:15 AM UTC-5, euromark wrote:
>
> Same thing. Just use this wrapper.
> And use debug kit to see how the session data looks like.
> But you should be able to us
Same thing. Just use this wrapper.
And use debug kit to see how the session data looks like.
But you should be able to use the knowledge you gained in my previous
answer to translate it to the role question.
The answer is right in front of you.
mark
Am Montag, 8. Dezember 2014 12:13:53 UTC+1 sc
Thank you,
What is the syntax to check if they have a role called admin?
Field name is role.
On Monday, December 8, 2014 5:29:35 AM UTC-5, euromark wrote:
>
> if ($this->Session>check('Auth.User.id') {}
>
>
> Am Montag, 8. Dezember 2014 02:32:28 UTC+1 schrieb frocco:
>>
>> I want to check in my
if ($this->Session>check('Auth.User.id') {}
Am Montag, 8. Dezember 2014 02:32:28 UTC+1 schrieb frocco:
>
> I want to check in my default layout.
>
> Thanks
>
--
Like Us on FaceBook https://www.facebook.com/CakePHP
Find us on Twitter http://twitter.com/CakePHP
---
You received this message bec
I want to check in my default layout.
Thanks
--
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 e
Thanks,
Did not know about the --prefix admin
Liking version 3 alot, have used yii and laravel before, also django
On Wednesday, December 3, 2014 10:55:20 AM UTC-5, frocco wrote:
>
> I want to create admin controller with view
>
> Thanks
>
--
Like Us on FaceBook https://www.facebook.com/CakeP
No need to move anything
Just use bake correctly as documented:
cake bake ... --prefix admin
That will create it in the right places.
Am Donnerstag, 4. Dezember 2014 17:38:46 UTC+1 schrieb cesar calvo:
>
> After bake just move Templates and Controllers to Admin directory and
> adjust the C
After bake just move Templates and Controllers to Admin directory and
adjust the Controller namespace
El jueves, 4 de diciembre de 2014 14:03:02 UTC-2, frocco escribió:
>
> Thanks,
>
> But when I use bake, will it generate the controller under admin?
>
>
> On Wednesday, December 3, 2014 10:55:20
Thanks,
But when I use bake, will it generate the controller under admin?
On Wednesday, December 3, 2014 10:55:20 AM UTC-5, frocco wrote:
>
> I want to create admin controller with view
>
> Thanks
>
--
Like Us on FaceBook https://www.facebook.com/CakePHP
Find us on Twitter http://twitter.com/C
In your config/routes.php add this:
Router::prefix('admin', function ($routes) {
$routes->fallbacks();
});
In AppController.php:
class AppController extends Controller {
public function initialize() {
$this->loadComponent('Auth')
}
public function beforeFilter(Event $event
I want to create admin controller with view
Thanks
--
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 recei
Thanks, my eyes are tired. :)
On Monday, December 1, 2014 8:51:34 PM UTC-5, rchavik wrote:
>
>
>
> On Tuesday, December 2, 2014 7:59:40 AM UTC+7, frocco wrote:
>>
>> $session = $this->request->session();
>> $session()->write('Search.category', $catid);
>>
>> $value $session->read('Search.category'
On Tuesday, December 2, 2014 7:59:40 AM UTC+7, frocco wrote:
>
> $session = $this->request->session();
> $session()->write('Search.category', $catid);
>
> $value $session->read('Search.category');
>
> syntax error, unexpected '$session' (T_VARIABLE)
>
> What is wrong?
>
You are missing a '='.
$session = $this->request->session();
$session()->write('Search.category', $catid);
$value $session->read('Search.category');
syntax error, unexpected '$session' (T_VARIABLE)
What is wrong?
--
Like Us on FaceBook https://www.facebook.com/CakePHP
Find us on Twitter http://twitter.com/CakePHP
Yo need enable admin prefix in route.php first, then run bake
--
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
I generated my controller and choose admin and it generated admin_index,
admin_add...
but the views are just index.cp, edit.ctp
is bake supposed to generated admin_index?
I am new to cake and trying to understand.
Thanks
--
Like Us on FaceBook https://www.facebook.com/CakePHP
Find us on Twitt
On Tuesday, October 21, 2014 4:32:42 PM UTC+7, Michael Hill wrote:
> I have been trying to get my PHP application to chat with a .net server
using SOAP and WDSL with WSE 2.0 auth.
> This is a little bit of a pain and was wondering if anyone could point in
the direction of a some code or a tutor
Hi,
I have been trying to get my PHP application to chat with a .net server
using SOAP and WDSL with WSE 2.0 auth.
This is a little bit of a pain and was wondering if anyone could point in
the direction of a some code or a tutorial or plugin that might help.
Most of the searches that I have d
You could/should use https://github.com/ceeram/CakePdf
it brings all with it - in a clean way.
Am Dienstag, 24. Juni 2014 11:48:04 UTC+2 schrieb Archana Goyal:
>
> I want convert html to pdf in my application.To do so I need to import
> vendor(tcpdf) in my controller.
> Please suggest any other
Tcpdf has several composer packages. You can and should usr composer to
dienload and install vendor libraries like tcpdf. Once the class has been
installed, you can just start using the classes. Composer's autoloader will
ensure the classes are loaded.
-mark
--
Like Us on FaceBook https://www
yes at controller page.
On Wed, Jun 25, 2014 at 4:13 PM, Archana Goyal
wrote:
> Ok, thanks for reply.
>
>
> On Wednesday, 25 June 2014 01:04:19 UTC+5:30, José Lorenzo wrote:
>>
>> What vendor?
>>
>> You could just use 'require'
>>
>> On Tuesday, June 24, 2014 11:48:04 AM UTC+2, Archana Goyal wr
Ok, thanks for reply.
On Wednesday, 25 June 2014 01:04:19 UTC+5:30, José Lorenzo wrote:
>
> What vendor?
>
> You could just use 'require'
>
> On Tuesday, June 24, 2014 11:48:04 AM UTC+2, Archana Goyal wrote:
>>
>> I want convert html to pdf in my application.To do so I need to import
>> vendor(tc
What vendor?
You could just use 'require'
On Tuesday, June 24, 2014 11:48:04 AM UTC+2, Archana Goyal wrote:
>
> I want convert html to pdf in my application.To do so I need to import
> vendor(tcpdf) in my controller.
> Please suggest any other solution to convert html to pdf or way to import
>
then u can include it by using simple include keeping the complete
structure on vendor folder
On Tue, Jun 24, 2014 at 3:25 PM, Archana Goyal
wrote:
> I can not use App::Import because this is not in CakePHP 3.
>
>
> On Tuesday, 24 June 2014 15:20:11 UTC+5:30, dada123 wrote:
>
>> Using App::Impo
I can not use App::Import because this is not in CakePHP 3.
On Tuesday, 24 June 2014 15:20:11 UTC+5:30, dada123 wrote:
>
> Using App::Import
>
>
> On Tue, Jun 24, 2014 at 3:18 PM, Archana Goyal > wrote:
>
>> I want convert html to pdf in my application.To do so I need to import
>> vendor(tcpdf)
Using App::Import
On Tue, Jun 24, 2014 at 3:18 PM, Archana Goyal
wrote:
> I want convert html to pdf in my application.To do so I need to import
> vendor(tcpdf) in my controller.
> Please suggest any other solution to convert html to pdf or way to import
> vendor.
>
> --
> Like Us on FaceBook h
I want convert html to pdf in my application.To do so I need to import
vendor(tcpdf) in my controller.
Please suggest any other solution to convert html to pdf or way to import
vendor.
--
Like Us on FaceBook https://www.facebook.com/CakePHP
Find us on Twitter http://twitter.com/CakePHP
---
Yo
try with this from console:
*cake schema create users*
2014-06-13 10:50 GMT-03:00 Art Sir :
> I am trying to use this
>
> https://github.com/CakeDC/users
>
> I placed it in my plugin folders but i'm unsure how to install the table
> necessary to work this plugin. Thank you
>
> --
> Like Us on Fa
I am trying to use this
https://github.com/CakeDC/users
I placed it in my plugin folders but i'm unsure how to install the table
necessary to work this plugin. Thank you
--
Like Us on FaceBook https://www.facebook.com/CakePHP
Find us on Twitter http://twitter.com/CakePHP
---
You received thi
I am trying to use this
https://github.com/CakeDC/users
I placed it in my plugin folders but i'm unsure how to install the table
necessary to work this plugin. Thank you
--
Like Us on FaceBook https://www.facebook.com/CakePHP
Find us on Twitter http://twitter.com/CakePHP
---
You received thi
m Mittwoch, 7. August 2013 09:53:51 UTC+2 schrieb sneha kulkarni:
>
> Hi,
>
> how do I get a barcode inside a table? Now it just floats outside the
> table in
> the upper left corner of the pdf. How do I get it inside the td?
> Help much appreciated.
>
--
Like Us on FaceBoo
Hi,
how do I get a barcode inside a table? Now it just floats outside the table
in
the upper left corner of the pdf. How do I get it inside the td?
Help much appreciated.
--
Like Us on FaceBook https://www.facebook.com/CakePHP
Find us on Twitter http://twitter.com/CakePHP
---
You received
What have you tried, what sql query does what you want to do?
AD
On Tuesday, 12 February 2013 05:57:43 UTC+1, Shahruk Khan wrote:
>
> Say I have column_1 and column_2 for a row. column_1 value is A and
> column_2 value is B. My query is A B. How can I perform this kind of search
> with CakePHP?
Say I have column_1 and column_2 for a row. column_1 value is A and
column_2 value is B. My query is A B. How can I perform this kind of search
with CakePHP?
--
Like Us on FaceBook https://www.facebook.com/CakePHP
Find us on Twitter http://twitter.com/CakePHP
---
You received this message bec
Now I know, thanks.
On Thursday, 15 November 2012 18:45:00 UTC, cricket wrote:
> I mean, I never see the *initial* post. Once a thread starts I see my own.
>
--
Like Us on FaceBook https://www.facebook.com/CakePHP
Find us on Twitter http://twitter.com/CakePHP
---
You received this message be
I mean, I never see the *initial* post. Once a thread starts I see my own.
On Thu, Nov 15, 2012 at 1:43 PM, lowpass wrote:
> I don't know. I never see my own posts; just the replies.
>
> On Thu, Nov 15, 2012 at 1:19 PM, Daniel wrote:
>> Oh, how do I unhide them?
>> Tha
I don't know. I never see my own posts; just the replies.
On Thu, Nov 15, 2012 at 1:19 PM, Daniel wrote:
> Oh, how do I unhide them?
> Thanks.
>
> On Thursday, 15 November 2012 18:02:26 UTC, cricket wrote:
>>
>> It did show up. It's gmail that's hid
Oh, how do I unhide them?
Thanks.
On Thursday, 15 November 2012 18:02:26 UTC, cricket wrote:
> It did show up. It's gmail that's hiding your own posts.
>
--
Like Us on FaceBook https://www.facebook.com/CakePHP
Find us on Twitter http://twitter.com/CakePHP
---
You recei
It did show up. It's gmail that's hiding your own posts.
On Thu, Nov 15, 2012 at 12:14 PM, Daniel wrote:
> Hello,
> I tried to make a post twice to this group but the message does not appear.
> How do I contact the group moderator?
> Thanks.
>
>
>
Hello,
I tried to make a post twice to this group but the message does not
appear. How do I contact the group moderator?
Thanks.
--
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
I've solved the problem myself now by reading the CakePHP cookbook a little
better:
Changed in version 2.1: You can now save deeper associated data as well
with setting $options['deep'] = true;
So for me this was all I needed:
$saveOptions['deep'] = true;
if ($this->Recipe->saveAll($this->re
Hii,
I'm trying to use the saveAll() method to create and save related data in
my CakePHP (2.2.1) app. I have a form where the user can input recipe
information and create recipeitems and ingredients. The problem is that I
don't know how to store the ingredients data.
I use the saveAll() metho
Ok, finally able to get it to work.
The results if anyone is interested.
https://github.com/resting/cakephp/commits/test_validation
On Monday, 17 September 2012 10:29:07 UTC+8, resting wrote:
>
> Hi yes, realized my mistake.
>
> Have made the changes
> https://github.com/resting/cakephp/commit
Hi yes, realized my mistake.
Have made the
changes
https://github.com/resting/cakephp/commit/ce2ffa4300f59720566a85db0b5ced5d4b96a117
But the result is still the same...weird...
On Monday, 17 September 2012 03:40:36 UTC+8, euromark wrote:
>
> have you ever seen validates() taking arguments? es
have you ever seen validates() taking arguments? especially $data? nope
$this->Model->set($this->request->data)
$result = $this->Model->validates()
as the book describes
Am Sonntag, 16. September 2012 20:09:24 UTC+2 schrieb resting:
>
> Created a test setup with v2.2.0
>
> Validation doesn't w
Created a test setup with v2.2.0
Validation doesn't work.
Empty fields still pass.
What am I doing wrong here?
Full
source:
https://github.com/resting/cakephp/blob/test_validation/app/Controller/MyFormController.php
On Friday, 14 September 2012 15:42:36 UTC+8, resting wrote:
>
> I have someth
I have something like this in my view:
echo $this->Form->input('Modelname.1.fieldname');
(ref:
http://book.cakephp.org/2.0/en/core-libraries/helpers/form.html#field-naming-conventions)
I have this in my model:
public $validate = array(
'filename' => array('ruleFilenameEmpty' =>
Ahh thanks for the example.. got it all working now :)
On Sat, Sep 8, 2012 at 3:09 PM, rchavik wrote:
>
> On Friday, September 7, 2012 10:23:06 PM UTC+7, Greg wrote:
>>
>> Hi,
>>
>> I've got a case where I want one helper to raise events on other helpers.
>> The concept is that plugins can mani
On Friday, September 7, 2012 10:23:06 PM UTC+7, Greg wrote:
>
> Hi,
>
> I've got a case where I want one helper to raise events on other helpers.
> The concept is that plugins can manipulate the output of a MenuHelper by
> returning additional menu items at runtime.
>
> Is there a way that I can
Hi,
I've got a case where I want one helper to raise events on other helpers.
The concept is that plugins can manipulate the output of a MenuHelper by
returning additional menu items at runtime.
Is there a way that I can access an instance of the helper collection and
attach additional callbacks
Thanks so much.it work perfectly that help me to save time to do my
project. Thanks again
On Thursday, August 30, 2012 3:56:42 PM UTC+7, suttipong Pratum wrote:
>
> example
>
> https://github.com/iwat/twdemo/blob/master/Controller/DemoController.php
>
> in DemoController and view
>
> good luc
example
https://github.com/iwat/twdemo/blob/master/Controller/DemoController.php
in DemoController and view
good luck
2012/8/30 Prarinthon Ajinajarn
> I try to googling but I only find upload file by saving in BLOB type
> but i want to saving path file i dont know how
> now i can do upload v
I try to googling but I only find upload file by saving in BLOB type
but i want to saving path file i dont know how
now i can do upload view.ctp to browse file img
but i dont know how to save file path
upload.ctp
Form->create('File', array('type' => 'file'));
echo $this->Form->input('fileName', arr
On Fri, Aug 24, 2012 at 6:14 PM, kevin.ncbible wrote:
> Thank you cricket.
>
> From what you've shared, I've been learning a lot about the Containable
> behavior, including limiting the fields displayed. That is very helpful. I
> was using:
>
> 'contain' => array(
> 'Passage' => array(
> 'f
Thank you cricket.
>From what you've shared, I've been learning a lot about the Containable
behavior, including limiting the fields displayed. That is very helpful. I
was using:
'contain' => array(
'Passage' => array(
'fields' => array(
'Passage.id',
'Passage.ref_abbr')
),
association
> setup with $belongsTo ParentTopic and $hasMany ChildTopic. So, when I get a
> view of "Topic" it also shows its children listed at the bottom of the
> page. That works great, but I want that Passage ref_abbr field included in
> this list as well. So, how
'ref_abbr']
>>
>> Now, here's the question: The "Topic" model also has a self association
>> setup with $belongsTo ParentTopic and $hasMany ChildTopic. So, when I get a
>> view of "Topic" it also shows its children listed at the bottom of the pag
x27;]
>
> Now, here's the question: The "Topic" model also has a self association
> setup with $belongsTo ParentTopic and $hasMany ChildTopic. So, when I get a
> view of "Topic" it also shows its children listed at the bottom of the page.
> That works great,
ociation
setup with $belongsTo ParentTopic and $hasMany ChildTopic. So, when I get a
view of "Topic" it also shows its children listed at the bottom of the
page. That works great, but I want that Passage ref_abbr field included in
this list as well. So, how do I get a view of ChildTopic th
My first time converting a PHP class to a CakePHP library! How do I load a
configuration file inside the plugin's controller?
I am using the MailChimp API Class for PHP.
--
You received this message because you are subscribed to the Google Groups
"CakePHP" group.
To post to t
Okei,, so I am trying out the save sessions to DB and make use of them in
my views.
My cake_sessions table are been updated just fine with my sessions data,
but now I am wondering how to access this data.
Couple things I want to to is:
1) Display current logged in users => There are 3 logged i
actually: paginate uses Model::find('all', $yourconditions);
in $yourconditions you can pass all things like fields, conditions, limit,
group, etc...
--
Lep pozdrav, Tilen Majerle
http://majerle.eu
2012/7/28 Mitchell, Kevin
> Thank you, Chetan:
>
> That was helpful; I just had fun with it. Wh
Thank you, Chetan:
That was helpful; I just had fun with it. What you shared led me to
investigate the Pagination page and I see I can use in the first array, in
addition to limit and conditions, other keys like: fields, order, page,
contain, joins, recursive -- similar to find().
Again, I do app
S: I guess I should start by learning how to do this with find() rather
> than paginate().
>
> I have working ...
>
> public function index() {
> $this->Topic->recursive = 0;
> $conditions = array("Topic.type = 'Bk'");
> debugger::dump($this->Topic
scs:
Thank you!
So. with your help, I now have working, using request->params and a url of
/topics/index/Bk or /topics/index/PR, etc. ...
public function index() {
$this->Topic->recursive = 0;
$type = $this->request->params['pass'][0];
$conditions = array("Topic.type" => $type);
$this->set('top
> I have working ...
>
> public function index() {
> $this->Topic->recursive = 0;
> $conditions = array("Topic.type = 'Bk'");
> debugger::dump($this->Topic->find('all', array('conditions' =>
> $conditions))); die;
> }
array('conditions' =>
$conditions))); die;
}
So, my question becomes: how do I pass a value the value 'Bk' to
$conditions?
... and, how would this be different using paginate() instead of find().
Thank you!
Kevin
--
Our newest site for the community: CakePHP Video Tutorials
Hello -- and thank you for being willing to help.
I'm new to PHP and CakePHP, but making progress. I have MVC setup for a
table called topics. In the controller for public function index I have:
$this->set('topics', $this->paginate());
That returns 15,000 records! I just want to see those of a
Hi,
I have had this problem for a few weeks now, and I am not satisfied with my
current solution. I have a table which has length and price attributes. It
is linked to other tables with hasMany relationships.
What I want to do is to retrieve the minimum and maximum values for both
aforementio
foo.sql
>>> >>
>>> >> Next include these two lines at the top of your import file to tell
>>> >> the DB how to treat the text:
>>> >>
>>> >> SET NAMES 'utf8';
>>> >> SET CHARACTER SET
lowing in database.php so that when
>> >> Cake connects it tells the DB to respond with the correct encoding:
>> >>
>> >> 'encoding' => 'utf8'
>> >>
>> >> In core.php:
>> >>
>> >> Configur
e connects it tells the DB to respond with the correct encoding:
> >>
> >> 'encoding' => 'utf8'
> >>
> >> In core.php:
> >>
> >> Configure::write('App.encoding', 'UTF-8');
> >>
> &g
gt; In core.php:
>>
>> Configure::write('App.encoding', 'UTF-8');
>>
>> In your layout(s):
>>
>> Html->charset() ?>
>>
>> The latter will include this in the head:
>>
>>
>>
>> ... which tells the bro
ing just learned how to bake a table to create
> > Model, Controller, and View. One of the fields in my database is Hebrew
> > (with diacritics) and one is Greek; the remainder of the fields are
> English.
> > How do I get the Hebrew and Greek to show up correctly? As is,
ich tells the browser how to treat the content.
On Thu, Jul 5, 2012 at 11:01 PM, Kevin Mitchell wrote:
> I am new to CakePHP, having just learned how to bake a table to create
> Model, Controller, and View. One of the fields in my database is Hebrew
> (with diacritics) and one is Greek; t
I am new to CakePHP, having just learned how to bake a table to create
Model, Controller, and View. One of the fields in my database is Hebrew
(with diacritics) and one is Greek; the remainder of the fields are
English. How do I get the Hebrew and Greek to show up correctly? As is, I
just see
It looks like your CAKE_CORE_INCLUDE_PATH is defined as the empty
string. Open app\webroot\index.php and look at line 81. The is where
Cake is told where to find the libs. If the runtime is reaching this
else block then you must have uncommented line 59. Check that you've
put the correct path. Is t
Thanks, I got it working!
Sharon
On Saturday, 19 May 2012 04:02:10 UTC+1, GB wrote:
>
> Recently I had similar problem. In one of my apps, this works:
> $email = new CakeEmail('smtp');
>
> In a second I had to separate out config setting:
> $email = new CakeEmail();
> $
Hello All,
how to delete Multiple tables fields values in cakephp 2.0
--
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
Recently I had similar problem. In one of my apps, this works:
$email = new CakeEmail('smtp');
In a second I had to separate out config setting:
$email = new CakeEmail();
$email->config('smtp');
Don't ask me why the need for 2 as once it was working I moved on.
George
I've been sending emails from my PagesController, and that has been working
fine, but now I need to send from AppController instead, and I can't get
the emails to send. As far as I can see, I have exactly the same code in
both, but the AppController function simply doesn't send the email. Ther
Warning: include(cake\bootstrap.php) [function.include]: failed to
open stream: No such file or directory in C:\xampp\htdocs\lawsocscheme
\app\webroot\index.php on line 81
--
Our newest site for the community: CakePHP Video Tutorials
http://tv.cakephp.org
Check out the new CakePHP Questions sit
1 - 100 of 621 matches
Mail list logo