Move the send message to the AppController.
On Mar 5, 2013 8:50 PM, wrote:
> Hi, I'll explain the context of my problem:
>
> In my project there are companies and students, companies publish job
> opportunities and students can apply for these.
> Both companies and students inherit features from
I might also suggest not using get by itself. You should use meaningful
action names. Like getCart or getData.
On Wed, Feb 27, 2013 at 7:03 AM, wrote:
>
> On Wednesday, February 27, 2013 2:55:53 AM UTC+2, lirc201 wrote:
>>
>> I'm in 2 different controllers. In the checkout controller, I'm tr
If you are in the function trying to call another function just do
$this->get() not $this->cart->get()
On Feb 26, 2013 6:32 PM, "lirc201" wrote:
> I'm still working in cake 1.3.15 (going to upgrade soon) but running into
> an issue. I'm setting up a shopping cart so I have functions in my
> cart
You mean this api? http://api.cakephp.org/1.3/
On Tue, Feb 26, 2013 at 12:26 PM, kdubya wrote:
> I can't find the classes anymore. I was specifically looking for the
> Debugger class in 1.3. The structure that used to be there until recently
> is gone. What happened? Did I miss something?
>
> K
Either create a route so that cake knows how to get to that folder or best
option would be to move the files folder under webroot.
On Wed, Feb 20, 2013 at 8:05 AM, April DeRossett
wrote:
> I have read, and read, but I can not figure this out. I am hoping someone
> will point me in the right dir
While Yvon makes some good observations what you actually set your
variables to that are passed to the view are your choice. Name them as you
wish. He did hit the nail on the head though when it comes to your
validation rules. just like your table columns everything should be
lowercase.
I would
I don't know of a cakephp way off the top of my head but on the database
side the best way would be using either a view table or a stored procedure.
On Thu, Feb 7, 2013 at 10:41 AM, Mathias R wrote:
> Hi,
>
> i have 2 tables (i.e. incoming_messages and outgoing_messages). saving
> data in one t
Best IDE - phpstorm
Best text editor - notepad++ (windows) or sublime text (mac)
On Feb 3, 2013 9:53 PM, "Sun Zheng" wrote:
> Try Sublime Text 2. Loving it.
>
> On Thursday, April 12, 2012 1:23:46 PM UTC+8, Reza Talamkhani wrote:
>>
>> Hi,
>> I Need an IDE for CakePHP 2.1 that integerated with c
e-controller
On Sat, Feb 2, 2013 at 1:03 PM, Anja Liebermann wrote:
> -BEGIN PGP SIGNED MESSAGE-
> Hash: SHA1
>
> Hi Jonathan,
>
> debug 2 ( or also 3) only shows me the SELECT statements, but not the
> INSERT statements.
>
>
> Calamity Jane
>
>
> Am 02
You should be able to set debug level to 2 and see all statement types.
On Feb 2, 2013 12:58 PM, "Anja Liebermann" wrote:
> -BEGIN PGP SIGNED MESSAGE-
> Hash: SHA1
>
> Hello everybody,
>
> I need help to find out why my model isn't saving. I use version 1.3.14
> and develop with Cake sinc
You actually would not use .htaccess, you should continue to use cakephp
and use the routing feature built in. Take a look at
http://book.cakephp.org/2.0/en/development/routing.html to get a better
idea.
On Sun, Jan 27, 2013 at 8:07 PM, Mogpusse wrote:
> Hi i need help
>
> i have this url
>
>
Which godaddy server are you trying to upload your site to?
On Thu, Jan 24, 2013 at 4:19 AM, Ram_Cakephp wrote:
> Hi, I am getting the following error. I uploaded the application in
> godaddy server.
> solution please.
>
>
> Missing Database Connection
>
> *Error: *Mysql requires a database co
Change your set array to be players instead of output.
On Jan 23, 2013 6:01 PM, "Mariano C." wrote:
> I have the players table with three field id, first_name, last_name. The
> PlayersController have method index that show every player in the table:
>
> public function index() {
> $output
Can you give us a little bit more information. What are you trying to
override a controller or model?
On Mon, Jan 21, 2013 at 7:36 AM, Cséfalvay Kálmán <
csefalvay.kal...@gmail.com> wrote:
> I see that overriding of a view is very simple (
> http://book.cakephp.org/2.0/en/plugins.html#overriding
Check this out.
https://groups.google.com/forum/?fromgroups=#!topic/cake-php/e11EAkB3WaA
On Thu, Jan 17, 2013 at 10:45 AM, Josh wrote:
> Hi everyone i'm searching to find the best way to get Bootstrap working
> fine in cakephp?
> Thanks.
>
> --
> Like Us on FaceBook https://www.facebook.com/Cak
Looks like you got your answer.
http://stackoverflow.com/questions/14348318/phpunit-util-skeleton-test-not-found-in-cakephp
On Tue, Jan 15, 2013 at 9:34 PM, Mathew wrote:
> I'm able to run my individual tests for each model in a plugin called Agg,
> but when I try to run a CakeTestSuite, then
What are your error logs telling you? There could be a number of issues
causing the problem.
On Thu, Jan 10, 2013 at 7:29 AM, Theresia Z wrote:
> I have a big problem with Cakephp. We installed it and built an
> application on windows, everything worked fine. Then I installed Cakephp on
> two
Create your table structure first and then run through cake bake to have it
create your models for you. It should be fairly straight forward. I would
also suggest removing the id field from matches_teams.
On Fri, Jan 4, 2013 at 9:39 AM, marcus33cz wrote:
> Thanx a lot jsundquist!
>
> I guess i
What you are asking for is possible but I would suggest rethinking how you
have your tables laid out and also consider how your data should relate to
each other. The original meaning of a HABTM table (matches_teams) is meant
to be only a joining table. It should really contain only match_id and
te
Go with 2.2.4 as its still the current stable release. 2.3.0 is still only
a release candidate and will have multiple updates come out down the line.
On Thu, Jan 3, 2013 at 9:42 AM, Anis Ghabri wrote:
> Hi,
>
> I guess it's clear for my next project starting NOW Should I use the 2.2.4
> versio
In order to see the blog controller pages you need to go to /blog
On Dec 29, 2012 7:03 PM, "Harish Geeth" wrote:
> Hi,
>
> I am new to cakePHP and downloaded the framework and started playing with
> it. I am using NetBeans to edit PHP files. I am able to cinfigure the
> CakePHP as expected. I get
This really isn't a cakephp problem. Someone built a cms on top of cakephp
and you are relaying heavily on that. In order to add this new, from what
I can understand from the initial post, static widget you will need to
modify one of the view files. This doesn't sound like some thing you will
be
Cakephp is an open source project. If you feel there is stuff that can be
fixed or updated you can always look into submitting a pull request for
updates. I would also suggest looking at the api docs as well for
documentation on the components. You're going to get a lot more information
form the ap
So your pasting html into a tinymxe editor which Will convert a < into <
and a > >.
If you are trying to add this static widget to the events page you Will
need to modify the ctp file within the /app/views/events directory.
Possibly an index.ctp file.
I would suggest checking out the docs for cak
What is Grr Cms that they are using? Cakephp is just a framework in itself.
It might help to understand this "admin" panel you speak of. Honestly it
sounds to me like you need to modify the layout file which is usually with
app/Views
On Dec 27, 2012 7:37 PM, "mrfugimoto" wrote:
> Hi @cricket. Tha
You should never modify the database manually. You should have cakephp
update the database for you.
On Dec 26, 2012 1:15 AM, "crush" wrote:
> Turn debug to 2 in the config file. Login with the new password and copy
> the password string it posts in the debug at the bottom of the page after
> you
You can update it the same way you created it.
On Dec 25, 2012 7:11 PM, "euromark" wrote:
> did you try google?
>
>
> Am Dienstag, 25. Dezember 2012 15:24:10 UTC+1 schrieb sweety:
>>
>>
>> --
> Like Us on FaceBook https://www.facebook.com/CakePHP
> Find us on Twitter http://twitter.com/CakePHP
>
That's nice.
On Dec 25, 2012 7:07 PM, "sweety" wrote:
>
> --
> 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
oxfordRob,
I've been trying to figure out what might be your issue with little to no
success. One thing I might suggest you try is to move your entire app
directory up to the root level instead of inside a subfolder if possible.
You may have a configuration issue causing cake core to not find th
Chris,
Just to help you out instead of the giant mktime string you have you can
also use strtotime(). Within the function you can simply do strtotime('+30
days') which will do the same thing as above.
On Wed, Dec 19, 2012 at 2:39 PM, Chris wrote:
> hi cricket, thank you for your response
What does your current AppController look like?
A stripped down version should look like this
wrote:
> @jsundquist - Thank you - that makes sense, I can see that information at
> the part of the error string.
>
> If I look at my cake folder structure, the file seems to be there (see
> attached
The message is still pretty clear. That's a standard php debug message. No
way of changing the information present.
As far as what that is telling you, its saying it still cannot find your
AppController.
On Dec 19, 2012 12:55 PM, "OxfordRob" wrote:
> @jsundquist - that was helpful, thank you. I
Would would need to do a not in condition. The below find method should
produce something to the following
SELECT * FROM users as user where user.group_id <> yourid;
$this->User->find('all', array('conditions'=>array('User.group_id <>' ,
generic id)));
On Wed, Dec 19, 2012 at 11:21 AM, byqsri
The AppController.php is part of the default download of CakePHP in all
versions. I just downloaded a fresh copy of CakePHP 2.3.0-RC1 and within
the app/Controllers directory there is in fact an AppController.php file.
You shouldn't need to re-create the file unless you deleted it.
On Wed, Dec 1
Since its not a related table you can always just do a find('list') on the
model that contains your data and send it to the view. Within the view you
would then set your $this->Form->input('field', array('options'=>
$this->values));
On Wed, Dec 19, 2012 at 5:04 AM, euromark wrote:
> no, if yo
Yes it does it automatically if you specify a join on that field.
On Dec 18, 2012 6:33 AM, "Sam" wrote:
> Yes. That is right. Can it be done by cake bake? Thank you.
>
> On Tuesday, December 18, 2012 7:50:49 PM UTC+8, euromark wrote:
>>
>> do you mean like select boxes? with options filled etc?
>
Hey David,
You would connect to your model the same way you do within any other
controller. Your controller code would look something like the following
public function index(){
// Disable both the view and layout as they both will not be needed.
$this->autoRender = false;
// Make sure someone
What version are you using.
On Nov 22, 2012 1:39 AM, "Miles J" wrote:
> I keep seeing this in my debug.log, any ideas?
>
> 2012-11-22 03:22:36 Notice: Notice (8): Use of undefined constant
> FULL_BASE_URL - assumed 'FULL_BASE_URL' in
> [/var/www/cake/latest/lib/Cake/Core/Object.php, line 87]
> Tr
Using the time helper you can do the following.
$time->format('c', $yourdate);
On Wed, Nov 21, 2012 at 7:39 AM, Steve Babs wrote:
> Hi all,
>
>
> How to convert given date string to utc format ?
>
>
> On Wednesday, November 21, 2012 6:28:18 PM UTC+5:30, Steve Babs wrote:
>>
>>
>> --
> Like Us
Jeremy,
I took your suggestion add added Location.state_id and State.id to the
fields array and it still returns the same error. Good idea, unfortunately
same out come.
- Jon
On Tue, Nov 20, 2012 at 9:34 AM, Jeremy Burns | Class Outfit <
jeremybu...@classoutfit.com> wrote:
> What happens if
If you perform a var_dump of $name I bet it would be $name[0]['player'].
On Nov 19, 2012 3:52 PM, "kijciwoko" wrote:
> Ok, sorry for newbie question, but I just don't get it and it drives me
> mad. Nothing works. This is my controller:
>
> class EntriesController extends AppController
> {
>va
What you are looking for is the following.
$this->set('posts', $this->paginate(array('Post', "Post.category_id =
$categoryId"));
On Mon, Nov 19, 2012 at 3:32 PM, Paul Willis wrote:
> I'm not paging categories I'm trying to page posts that belong to a
> particular category
>
> PW
>
>
> On 19 No
Chris,
Your issue is 'VALID_EMAIL' is not a valid regular expression. Take a look
here for how to use regular expressions to validate the email address.
http://www.developphp.com/view_lesson.php?v=224
- Jon
On Fri, Nov 2, 2012 at 9:35 AM, Chris wrote:
> thank you for your reply chetan,...
>
A select dropdown will never be empty unless one of the options is an empty
string.
- Jon
On Nov 1, 2012 5:23 AM, "Chris" wrote:
>
> hi guys,... I'm using cake 1.3
> how can I validate "select" field from Model,?
>
> what I have in bootstrap:
> Configure::write('User.genders', array('unknow
- Jon
On Nov 1, 2012 5:23 AM, "Chris" wrote:
>
> hi guys,... I'm using cake 1.3
> how can I validate "select" field from Model,?
>
> what I have in bootstrap:
> Configure::write('User.genders', array('unknown', 'male', 'female'));
>
> in a view:
>
>
> $genders = array(Configu
Is your goal to output some message if they have successfully filled out
your form and possibly add a little extra data to the success message? If
so just hide the success message by default, add some selectors that you
can populate with the json that's returned on success, and then show the
messa
Why would you want to extend that controller if all you are doing is
putting specific functions within the new one? You need to think how
complex does your solution need to be. If the user is editing their own
information, which could include updating their password, I would think
that should be
Specifically look at the following within the cake book
http://book.cakephp.org/2.0/en/models/associations-linking-models-together.html#creating-and-destroying-associations-on-the-fly
On Mon, Oct 22, 2012 at 12:29 PM, Jonathan Sundquist
wrote:
> Change the join type to an outer join instead
Change the join type to an outer join instead of an inner join. In order
to do this within your controller before you make the query you will need
to flip either your belongsTo or hasMany depending on which way you have
your model set up.
On Mon, Oct 22, 2012 at 12:27 PM, lowpass wrote:
> I thi
Yes going through phpMyAdmin would be a good test. if that works, awesome.
Is php my admin and your cake application on the same server? Could be a
permission issue going between servers.
Yes there should be only one database.php file within your config file.
Are the file permissions set up co
Did you set up your database config correctly? Try connecting to it
directly to see if your database is up and your connection information is
correct.
On Thu, Oct 18, 2012 at 6:06 PM, Russell Brown wrote:
> It does give me the line number. However, I just noticed that SQL Logs
> says "Warning -
Sorry. Do a var_dump($this)
- "The cold winds are rising"
On Oct 18, 2012 3:29 PM, "Russell Brown" wrote:
> When I put debug($this); in the file, however I get a syntax error on that
> line.
>
> I am using Cake 2.2.2 and I have installed the DebugKit too.
>
>
>
> On Monday, October 15, 2012 8:27
Check to see if the request is ajax or not.
http://api20.cakephp.org/class/request-handler-component#method-RequestHandlerComponentisAjax
On Thu, Oct 18, 2012 at 1:40 PM, Advantage+ wrote:
> How can I render a view block if the request is not ajax?
>
> ** **
>
> I have a main nav which requ
The error has nothing to do with your view. It will have to do with either
your model or your controller. As people have previously stated can you do
a debug($this) before and after your find? It will show if the Address
model is actually loaded or not. If its not loaded then your find method
wi
The group by is throwing it off. When you use a group and an order
together you typically do not get the expected result. In order to get the
desired results you might need to do an inner select. I don't remember the
correct way to do it off the top of my head though to get what you are
looking f
Thu, Oct 18, 2012 at 12:22 PM, Jonathan Sundquist > wrote:
>
>> You needs to tell the application what your base url is within the config
>> file so that it knows how to handle the routing correctly.
>>
>> - "The cold winds are rising"
>> On Oct 18, 2012
You needs to tell the application what your base url is within the config
file so that it knows how to handle the routing correctly.
- "The cold winds are rising"
On Oct 18, 2012 2:50 AM, "cosinusweb" wrote:
> Hello
>
> I'm trying to install cakephp
>
> In httpdf.conf
> I must use an alias this
Take a look at this tutorial / example.
http://book.cakephp.org/2.0/en/tutorials-and-examples/simple-acl-controlled-application/simple-acl-controlled-application.htmlnote
how the acrsas has changed. It looks like you may have cake 1.3
syntex.
- "The cold winds are rising"
On Oct 13, 2012 6:46 PM,
What does the code look like?
- "The cold winds are rising"
On Oct 12, 2012 6:31 AM, "Webmaster Cosinus" wrote:
> I've a table called "recharges" and onother called "montant_recharges"
>
> In the recharge table I've a filed called montant_recharge_id which link
> the two tables.
>
> When I dele
Is that user id being held within a session object? If it is why not place
a beforeInsert function within your message model and add the user id there
to the data being sent in?
On Wed, Oct 3, 2012 at 7:40 AM, jodator wrote:
> this one will be more consistent with URL routing:
>
> Form->create(
If you need access to more data with in the joining table you will not be
able to use a habtm model. You will need to change it into a has many model.
- "The cold winds are rising"
On Sep 29, 2012 9:06 PM, "gosukiwi" wrote:
> This is what I've got, I have a table named Users, and a table named
>
I guess I question what you would like this data set for. Looking at this
from a large scale of the United States I know there are a number of city
names that are duplicated across multiple states. Now I don't know if this
is the same across the rest of the world but you may need to rethink what
I don't know how likely you will find a country and all cities within each
specific country. You are more likely to find database schemas out there
that give you countries with all related states/provinces within.
On Thu, Sep 27, 2012 at 10:08 AM, Maliko V wrote:
> Can you elaborate what do you
Why are you using a hasMany instead of a hasAndBelongsToMany? You wouldn't
need the id column as you two ideas together would be your index.
- "The cold winds are rising"
On Sep 16, 2012 5:17 PM, "Nvp" wrote:
> Hi!
> I built DB with tables:
>
> *restaurants* - main table
>
> *kitchens* - second
I finally figured out what I was doing wrong. I needed to specify the app
path when trying to run the console command. Once specified I was able to
create the schema with out any issues.
On Wed, Sep 12, 2012 at 9:49 PM, Jonathan Sundquist wrote:
> This evening I was trying to set up a s
This evening I was trying to set up a site using a plugin and I am actually
able to get a majority of the site to load minus a few setup items I still
need to complete however now when I try to set up the schema using the cake
console it says it cannot find the plugin at all. What could I be doin
Create an app controller and have both controllers extend it. Then move
your ping function into the app controller.
- "The cold winds are rising"
On Sep 5, 2012 6:06 PM, "Salines" wrote:
> eg I have a plugin called Test, and the class named TestController, where
> I have a ping function , publi
67 matches
Mail list logo