Hi
it is a huge application and it should be migrated to version 2 view
by view (there won't be changes in model/controller), so i think this
method will be a perfect fit for what i need to do.
i know cake has some similar functionaity (for example it will render
default.ctp layout from cake
Hi,
It is a huge application that needs to be migrated to v2 screen by
screen, and this method will be a perfect match if i can make it work.
i know cake uses for example default.ctp layout from cake folder if it
doesn't exists in app/view/layout folder, so i thought similar
functionality can be
I am doing something similar for A/B testing and also to present
different checkout pages to users depending on which country they come
from.
I have several views for the affected actions, named whatever-a.ctp,
whatever-b.ctp and in the controller put a call to $this-
render() at the end of
Hi,
array(action =index) Is an associative array in php, it has not more
deeper
sense then, it is just an associative array in php,and (action =index
is a *key = value* pairs)
For more understanding about this you should go through Array topic in php
official site. and it's link is
On Mar 1, 2011, at 22:15, Elvis Nguyen wrote:
sudo mkdir /var/run/mysqld
cd /var/run/mysqld
sudo ln -s /opt/lampp/var/mysql/mysql.sock mysqld.sock
Creating a symlink to the socket is a poor workaround. Instead, either tell
your mysql server to create the socket where php is expecting it
Dear community of developers,
mercy, peace and love be yours in abundance.
I'd like to share a vision why bleeding-edge solutions scare and how to
craft it more friendly with a case study.
Every development stage begins with a root folder, empty index page and text
editor. In late 90s I used
Huh?
Jeremy Burns
Class Outfit
jeremybu...@classoutfit.com
http://www.classoutfit.com
On 2 Mar 2011, at 12:47, Alexander Sergeyev wrote:
Dear community of developers,
mercy, peace and love be yours in abundance.
I'd like to share a vision why bleeding-edge solutions scare and how to
Yes, its possible. You should try to put as much code as you can where it
can be used in the two actions.
On Tue, Mar 1, 2011 at 10:27 PM, eldorado2768 davidbrotman2...@gmail.comwrote:
Is it possible to have more than one login screen for 2 different user
types?
--
Our newest site for the
Hello Everybody,
I am having a problem with CakePHP models. I have several in use but
only one gives me an error when i add a function and call it from a
controller. I have a model called Invoice with a saveValue function
which works like a charm. I also have model with the same function but
this
Hi all,
My first post here so I'll give a little introduction. I'm pretty new
to CakePHP but have experience with PHP and MVC. So far I've read
through the cookbook and I'm halfway through reading a more in depth
book on the platform.
I have just done a fresh install onto a test web host and
Hi.
I have moved one of my applications to a new server (CentOS) and I
have the following problem. The cached view files (elements or whole
views) are created with messed up filenames.
Here is a screenshot from the folder on two servers.
I am not sure what to do... has anyone else experienced
Forgot the screenshot
http://screencast.com/t/rcvkSlUs
--
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,
This has come up before, but the answer is not obvious. Here's a stolen reply
from an earlier post:
This is actually caused by a bug in the PCRE library on Centos / Red Hat. See
this
http://blog.echothis.com/2011/01/27/fixing-cakephp-1-3s-cache-key-error-on-red-hat-and-centos/
blog post for
@dtemes:
Yes, i know i can do that, but it is not a good solution for a huge
project with lot of methods.
i tried to set that in beforeRender, but it didn't affect the result,
so i think it can't be set there.
thanks for your answer
--
Our newest site for the community: CakePHP Video Tutorials
$isAlreadyEntried = $this - Production -
find('count',array('conditions' = array('Production.dt' =
$dt,'Production.item_type' = $item_type,'Production.contractor_id' =
$this-data['Production']['contractor_id'])));
debug($isAlreadyEntried);
what server is this installed on?
the display of the home ctp file works ok? (not styled)
try domain.com/app/pages/home - this should display the same home.ctp
I have feeling that this issue might have something to do with MIME
types on the server due to the dot in the filename
Yes is enabled, im think some configuration is missing.
On 25 feb, 14:29, Stephen step...@ninjacodermonkey.co.uk wrote:
Make sure mod_rewrite is enabled on the server.
On 25 February 2011 18:58, edwingt edwin.al...@gmail.com wrote:
Hello every one
I'm taking a cakePHP site that is
Hi,
I have a own controller:
class CommonHelper extends AppHelper{
...
public function date_diff($d1, $d2){ ...
How can I use this helper within a controller?
class MembersController extends AppController {
...
function index(){.
?
--
Our newest site for the community: CakePHP Video
I feel bad because I ate something bad. Can someone tell me what I ate?
You might want to include the function...just maybe
K
-Original Message-
From: cake-php@googlegroups.com [mailto:cake-php@googlegroups.com] On Behalf
Of Tom van den Berk
Sent: Wednesday, March 02, 2011 8:10 AM
To:
If you would have read the question properly, you would have known the
function is of no consequence.
The fact that the function name is passed as SQL is. The function is
never even reached because a die();
in the first line has no effect.
If something is not clear, please ask me in a normally,
http://book.cakephp.org/view/1096/Using-Helpers
--
Lep pozdrav, Tilen Majerle
http://majerle.eu
2011/3/2 heohni heidi.anselstet...@consultingteam.de
Hi,
I have a own controller:
class CommonHelper extends AppHelper{
...
public function date_diff($d1, $d2){ ...
How can I use this
It's hard to say from all that html, but maybe you are calling a function
saveValue that does not exist in the model.
Jeremy Burns
Class Outfit
jeremybu...@classoutfit.com
http://www.classoutfit.com
On 2 Mar 2011, at 15:57, Tom van den Berk wrote:
If you would have read the question
class MembersController extends AppController {
...
var $helpers = array('Common');
...
function createTempPayments(){
$this-helpers[] = 'Common';
$diff = $this-Common-date_diff(.
returns Undefined property: MembersController::$Common
On 2 Mrz., 16:56, Tilen Majerle
ERROR:
SQL Error: 1064: You have an error in your SQL
syntax; check the manual that corresponds to your MySQL server version
for the right syntax to use near 'saveValue' at line 1
you for sure don't have function in a right model, or you call it wrong...
--
Lep pozdrav, Tilen Majerle
FIRST: $this-helpers[] = 'Common'; is not correct, $helpers is correct
SECOND: Helpers are for controller's views not for Controller class, use
components http://book.cakephp.org/view/996/Creating-Components
--
Lep pozdrav, Tilen Majerle
http://majerle.eu
2011/3/2 heohni
Thanks for your reply,
The server is configured as follows:
Apache/2.2.17 (Unix) mod_ssl/2.2.17 OpenSSL/0.9.7a
mod_auth_passthrough/2.1 mod_bwlimited/1.4 FrontPage/5.0.2.2635
I tried renaming cake.generic.css to cake.css, and changing
default.ctp but still get the same error 406.
I'll have a
The helpers are declared in the controller but used in the view. I suggest
moving the functionality into a component.
Jeremy Burns
Class Outfit
jeremybu...@classoutfit.com
http://www.classoutfit.com
On 2 Mar 2011, at 16:03, heohni wrote:
class MembersController extends AppController {
...
OK! thanks!
I am using now a component!
Thanks!!!
On 2 Mrz., 17:06, Jeremy Burns | Class Outfit
jeremybu...@classoutfit.com wrote:
The helpers are declared in the controller but used in the view. I suggest
moving the functionality into a component.
Jeremy Burns
Class Outfit
Have you ensured that htaccess is working ok?
do you need to add rewritebase?
-or-
cake internal rewrite - uncomment line 69 ish
https://github.com/cakephp/cakephp/blob/master/app/config/core.php#L69
url in the browser won't be so pretty.
- S
On 2 March 2011 16:12, Duke
Yep, I have already in my controller
var $helpers = array('Common');
but
$diff = $this-date_diff(
returns
Call to undefined method MembersController::date_diff()
--
Our newest site for the community: CakePHP Video Tutorials
http://tv.cakephp.org
Check out the new CakePHP Questions
This is the function call:
$this - InvoiceLine - saveValue($invoiceId, $key, $value);
This is the MODEL:
?php
class InvoiceLine extends AppModel
{
var $name = 'InvoiceLine';
var $primaryKey = 'invoice_line_id';
var $belongsTo = array
(
What is the name of the model file?
Jeremy Burns
Class Outfit
jeremybu...@classoutfit.com
http://www.classoutfit.com
On 2 Mar 2011, at 16:45, Tom van den Berk wrote:
This is the function call:
$this - InvoiceLine - saveValue($invoiceId, $key, $value);
This is the MODEL:
?php
class
This is the file: invoiceline.php
On 2 mrt, 18:07, Jeremy Burns | Class Outfit
jeremybu...@classoutfit.com wrote:
What is the name of the model file?
Jeremy Burns
Class Outfit
jeremybu...@classoutfit.comhttp://www.classoutfit.com
--
Our newest site for the community: CakePHP Video
Rename it invoice_line.php
Jeremy Burns
Class Outfit
jeremybu...@classoutfit.com
http://www.classoutfit.com
On 2 Mar 2011, at 17:10, Tom van den Berk wrote:
This is the file: invoiceline.php
On 2 mrt, 18:07, Jeremy Burns | Class Outfit
jeremybu...@classoutfit.com wrote:
What is the name
How much do these views need to vary?
can't you handle these differences with po/pot files? sounds more the way
this should be done
you could switch layout in the view or app beforerender and use some styling
to present differences
- S
On 2 March 2011 15:10, K3 kiril.zvezdako...@gmail.com
You have solved my problem! Thank you very much, this was driving me
crazy!
It is working perfectly now, the name change did the trick.
Thanks again for the help and for everybody else who took the time to
help me.
On 2 mrt, 18:12, Jeremy Burns | Class Outfit
jeremybu...@classoutfit.com wrote:
Its always gives 0 as output.I solved by find('all').
On Wed, Mar 2, 2011 at 8:49 PM, sanjibdhar...@gmail.com
sanjibdhar...@gmail.com wrote:
$isAlreadyEntried = $this - Production -
find('count',array('conditions' = array('Production.dt' =
$dt,'Production.item_type' =
On Wed, Mar 2, 2011 at 10:46 AM, edwingt edwin.al...@gmail.com wrote:
Yes is enabled, im think some configuration is missing.
In app/config/core.php, do you have te App.baseUrl line uncommented?
--
Our newest site for the community: CakePHP Video Tutorials
http://tv.cakephp.org
Check out the
Hello!
I'm trying to get some data using habtm.
here is the code:
$this-Article-bindModel(array('hasOne'=array('ArticlesTag')));
$tags = $this-Article-Tag-
find('list',array('conditions'=array('ArticlesTag.article_id'=
$id)));
The source is from the manual.
Now the error:
Warning (512): SQL
On Tue, Mar 1, 2011 at 4:01 AM, K3 kiril.zvezdako...@gmail.com wrote:
Hi,
if i add another subfolder in /app/view where i want to put
alternative view structure of the site, so for example for articles
folder i have following structure:
/app/
/view/
/_version2/
For 1.2 but still applies:
http://marianoiglesias.com.ar/cakephp/modelizing-habtm-join-tables-in-cakeph
p-1-2-with-and-auto-with-models/
or
http://nuts-and-bolts-of-cakephp.com/2008/07/03/notes-on-cakephp-habtm-part-
1-the-basics/
Common mistake is in the name. Filename / classname / singular
Hi everyone,
I'm wondering what is the 'proper' or 'suggested' way of using
conditions in model associations. I'm using an Activity model to log
activities performed throughout my app. I then use this table to
output activity feed / notifications style sections to users. The
problem I'm having is
Personaly I never set any conditions in the relations (hasOne, hasMany )
all conditions are defined in the function since depending on why I am
getting the data and for who conditions constantly change.
You can say conditions Posts = 1 //active so you only by default display
all active Post.
I think he means It's going to rain outside today at 4pm.
From: cake-php@googlegroups.com [mailto:cake-php@googlegroups.com] On Behalf
Of Jeremy Burns | Class Outfit
Sent: Wednesday, March 02, 2011 7:51 AM
To: cake-php@googlegroups.com
Subject: Re: On the road to Da Vinci 2.0
Huh?
Jeremy
Hi,
I have a membership app where members has many payments.
In my member controller = action 'listpayments' I have a function
where I create a list of all members and their payments based on
certain filters.
At a certain point of time, I have a list of due payments which I want
to transfer now
No that's wrong. It not raining here!
I took out my Little Orphan Annie decoder pin and it says Be Sure to Drink
Your Ovaltine J
--
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
The awful thing is I read it all and I think I may have actually
understood what he was saying..
Please don't ever post an esoteric rant again - this is a list for
asking questions about how things work, not to brag about how long you
have been in the DaVinci fan club while blaming developers for
I tend to define conditions in associations on very few occasions. One
good use is for polymorphic models (you need to define the field =
modelName mapping) and for models that have a enum field (or similar)
that determines some behavior of the model. IE log models and for
defining self
Hi,
For my video site, I want the user be able to upload large files to
the server, and I want to have an upload progress bar. I searched for
2 days, and I tried the uploadify, it worked for php in the htdocs,
but not in exceltv. I also tried a cakephp plugin called cuploadify,
it throws me a 404
It's a spam post- do a google searchb on the title... its been posted
everywhere.
--
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
Anyone got this version working with phpunit?
I have had previous version working with phpunit, by having a bit of a
nasty bookstrap in the test directory. However in the lastest version
files do not seem to auto load?
Any ideas would be much appreciated.
--
Our newest site for the community:
Cant seem to get this.
Site.com/ = base entry page goes to a routed controller = action all fine
I need crumb home to go to a specific page.
Crumb Home = will take you to site.com/welcome which is 'controller' =
'pages', 'action' = 'index'
In the layout I have :
?php
Sorry.
Not going to bother with the idea. Home should just go to site.com/
Keep it at the site base.
K
--
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
i agree with gremlin
foreign_key + model is an example for this
everything else i would set right inside the querying model method
On 2 Mrz., 23:06, gremlin abba.bry...@gmail.com wrote:
I tend to define conditions in associations on very few occasions. One
good use is for polymorphic models
This guy just emailed me pissed that he got banned... he accused us of
being ignorant patricians oppressing the brilliant ideas of uppity
plebes pride much?
On Mar 2, 4:56 pm, Sam Bernard sambern...@gmail.com wrote:
It's a spam post- do a google searchb on the title... its been posted
He should email me, I am the one who banned him. And since I am the owner
of the list I think that gives me the right to ban for content I consider
spam and as mentioned in this thread it was cross posted in a lot of other
places.
--
Larry E. Masters
On Wed, Mar 2, 2011 at 7:26 PM, Sam Bernard
If I were the owner of the list, I'd have banned him on the basis of him
having started off with mercy, peace and love.
On Wed, Mar 2, 2011 at 8:29 PM, Larry E. Masters php...@gmail.com wrote:
He should email me, I am the one who banned him. And since I am the owner
of the list I think that
On Wed, Mar 2, 2011 at 5:31 PM, Tan Cheng davidtan...@gmail.com wrote:
Hi,
For my video site, I want the user be able to upload large files to
the server, and I want to have an upload progress bar. I searched for
2 days, and I tried the uploadify, it worked for php in the htdocs,
but not in
Hi cricket,
I just noticed from their installation guide that the file size limit
is 100mb. I am building a video site, so this might be not enough for
my current need.
But thank you anyway!
On Mar 2, 9:09 pm, cricket zijn.digi...@gmail.com wrote:
On Wed, Mar 2, 2011 at 5:31 PM, Tan Cheng
Thanks a lot. I will try it right now and tell you how it is.
Thanks again!
-David
On Mar 2, 9:09 pm, cricket zijn.digi...@gmail.com wrote:
On Wed, Mar 2, 2011 at 5:31 PM, Tan Cheng davidtan...@gmail.com wrote:
Hi,
For my video site, I want the user be able to upload large files to
the
Awesome, thanks everyone!
I think I'm going to opt for removing the associating and just taking
care of it in my queries.
On Mar 2, 5:34 pm, euromark dereurom...@googlemail.com wrote:
i agree with gremlin
foreign_key + model is an example for this
everything else i would set right inside the
What's the time difference? Is it all part of the same loop, or is there
something else happening in between?
Jeremy Burns
Class Outfit
jeremybu...@classoutfit.com
http://www.classoutfit.com
On 2 Mar 2011, at 21:31, heohni wrote:
Hi,
I have a membership app where members has many
I got the same thing.
Jeremy Burns
Class Outfit
jeremybu...@classoutfit.com
http://www.classoutfit.com
On 3 Mar 2011, at 01:26, Sam Bernard wrote:
This guy just emailed me pissed that he got banned... he accused us of
being ignorant patricians oppressing the brilliant ideas of uppity
On Wed, Mar 2, 2011 at 4:31 PM, heohni
heidi.anselstet...@consultingteam.de wrote:
Hi,
I have a membership app where members has many payments.
In my member controller = action 'listpayments' I have a function
where I create a list of all members and their payments based on
certain filters.
On Wed, Mar 2, 2011 at 10:25 PM, Tan Cheng davidtan...@gmail.com wrote:
Hi cricket,
I just noticed from their installation guide that the file size limit
is 100mb. I am building a video site, so this might be not enough for
my current need.
But thank you anyway!
I hadn't noticed that.
65 matches
Mail list logo