It's a German car pooling / ride sharing platform: www.mitfahrgelegenheit.de
Thanks to cake we can easily do our roll outs to other countries (e.g.
www.pamemazi.gr where we are already live), others will follow in the
next weeks.
On 13 Jan., 13:41, Jon Bennett jmbenn...@gmail.com wrote:
We
try
$url = $html-url( array('controller' = 'posts', 'action' = 'view',
'id' = 12, 'param' = 'name));
echo $url;
On Jan 13, 8:56 pm, blickensdoer...@googlemail.com
blickensdoer...@googlemail.com wrote:
hi everyone,
i have a problem with the url helper in the pages_controller:
i want to
Hi,
php.exe C:/xampp/htdocs/cakeblog/cake/console/cake.php myfunction
in the shell I import a model like
$uses = array('Mymodel');
when I run this into my prompt print an error
Fatal error: Class 'Controller' not fount in C:\xampp\htdocs\cakeblog
\app\ap_controller.php on line 2
any ideas?
Please confirm that the error message states ap_controller?? Naming
issue??
Enjoy,
John
On Jan 14, 11:11 am, alberto alberto.pri...@gmail.com wrote:
Hi,
php.exe C:/xampp/htdocs/cakeblog/cake/console/cake.php myfunction
in the shell I import a model like
$uses = array('Mymodel');
when I
Hi all,
I'm trying to display data in a html table from a database query.
The data appears but I want to be able to provide an option from each
record shown in the html table, i.e. (view more details button).
I do this by creating a form inside the php loop that generates the
table data. The
Can anyone give me an instruction for the new Eclipse / PDT version
how I can include the Cake core application to my projects?
Here:
http://bakery.cakephp.org/articles/view/setting-up-eclipse-to-work-with-cake
The part of including the Cake core application via Include Path
does not work.
excuse was a mistake.
is app_controller
On 14 Gen, 10:48, John Andersen j.andersen...@gmail.com wrote:
Please confirm that the error message states ap_controller?? Naming
issue??
Enjoy,
John
On Jan 14, 11:11 am, alberto alberto.pri...@gmail.com wrote:
Hi,
php.exe
I am sure that this is not a good idea!
You are creating 7 forms with the same id-name! Suggest you move the
form creation outside the loop and make your submit button provide the
correct duty id.
[code]
?php echo $form-create('Duty', array('action' =
'displayDutyDetails')); ?
table cellpadding=0
Ah many thanks John :-)
This works perfectly, although still a little bit messy in IE but i
think thats an issue with the image we've used as the form button.
Cheers!
~Bailey
On Jan 14, 10:38 am, John Andersen j.andersen...@gmail.com wrote:
I am sure that this is not a good idea!
You are
@John Andersen: thx but there has to be a solution instead of
formatting in view file
@Azril Nazli: :-( no luck... it says, sql query error. here is the
below query:
SELECT `GenderSalutation`.`name`, `User`.`first_name`,
`User`.`middle_name`, `User`.`last_name`, `User`.`address`, DATE_FORMAT
Hello,
I'm using Cake with Postgres and am having problems with how long it
takes to refresh the model caches on each request. Postgres doesn't
have describe tablename like MySQL, so Cake works out the schema by
doing a series of queries on the Postgres system tables, and that's
what's taking a
As far as I know, there is no solution!
But my suggestion was that formatting for presentation is not a good
thing to do at the database level, but in CakePHP is performed in the
view.
That way you have all the possibilities to use the date not only for
presentation but also for processing
This is also posted on stackoverflow if you would like to see it with
syntax highlighting and such.
http://stackoverflow.com/questions/2063703/cakephp-saveall-fatal-error-call-to-a-member-function-getcolumntype
So I am creating a form builder. Users will login and then fillout the
forms that
Hi, koala kid
Try to add 'foreignKey' It can cause your problem.
?php
class Rental extends AppModel
{
var $name = 'Rental';
var $hasOne = array(
'Rate' = array(
'className'= 'Rate',
'foreignKey' = 'rental_id',
'dependent'= true
I am building a site which is in cakephp 1.2. The problem i am facing
is in the server as well as in the localhost. Whenever i try to load a
page the spends a lot of time in waiting for www.example.com, but
page eventually loads. I have put debug to 2 and checked dat the
query execution is taking
Hi All,
I hope someone can help me with what I think is a simple question that
I just haven't wrapped my head round yet. (I'm new to CakePHP).
I want to create a link that requests the index action of my blog
(which is paginated), but at the same time passes it a condition, like
category_id=2 or
If you are only ever going to filter for category_id, you could do this:
$html-link($category_name,array('controller'='Blogs',
'action'='index', 3));
Then change you index function to:
function index($category_id = null)
...and then check for a non null value later in your code when you do
Spent more time on this bug than I should have, but ...
I had a problem which I tracked down to two non-printable characters
of whitespace, inserted at the beginning of data sent to the client,
as a response to an ajax operation.
Now, where would *you* look to find how two unprintable characters
That's great, thanks for your help! I guess if I wanted the option of
additional parameters I could do something like:
$html-link($category_name,array('controller'='Blogs',
'action'='index', null, 5));
function index($category_id = null, $tag_id = null)
Does that look right?
Also, do you know
It seems a little odd to me that you are using:
[code]
$this-Datum-saveAll($this-data['Datum'])
[/code]
I would assume that the correct form (the one I always use) is:
[code]
$this-Datum-saveAll($this-data)
[/code]
so that the model, when processing the data, can recognise the model
to which
hi Ben,
Used named parameters:
$html-link($category_name, array(
'controller'='Blogs',
'action'='index',
'category_id'=3,
'tag_id'=4
));
public function index()
{
extract($this-params['named']);
$conditions = array();
if
With this shell task by David Persson:
http://bin.cakephp.org/nick/davidpersson/page:1
:)
On Jan 14, 9:21 am, keymaster ad...@optionosophy.com wrote:
Spent more time on this bug than I should have, but ...
I had a problem which I tracked down to two non-printable characters
of whitespace,
When I do the following in my edit method
[code]
$this-Datum-saveAll($this-data)
[/code]
I get one new row in the data table with all of the columns empty.
reference:
http://teknoid.wordpress.com/2008/10/27/editing-multiple-records-with-saveall/
On Jan 14, 3:55 pm, John Andersen
Hi!
Id like to filter my videos by tags. The video must have all of the
tags, and I want to sort the result by count on the stats table.
I've got a working version without stats allthought this is not
working with paginate.
$searchTerms = array('Tag1','Tag2');
$numCount = count($searchTerms);
I stand corrected :)
The only other issue I see, is that your edit array does not start
from 0!
Could your view be made to not include the id as the array key? Like:
[code]
echo $form-hidden('Datum.[].id', array('value' = $field_datum
['id']));
[/code]
I am grasping for straw here :D
Enjoy,
Bingo !
Thank you.
Surprisingly, there were quite a few cake files in the core with
trailing white spaces, as well.
I opened a ticket in lighthouse on this, attached David's shell, and
suggested perhaps they may want to include this shell as part of the
regular test run:
Thanks, Jon, that's perfect.
-Original Message-
From: cake-php@googlegroups.com [mailto:cake-...@googlegroups.com] On Behalf Of
Jon Bennett
Sent: 14 January 2010 15:07
To: cake-php@googlegroups.com
Subject: Re: create a link with conditions to filter index action
hi Ben,
Used named
First of all thanks for your insight and taking the time to help. :D
if $this-data['Datum'] is as follows:
[code]
Array
(
[0] = Array
(
[id] = 173
[form_id] = 208
[field_id] = 56
[user_id] = 1
[bool_val] = 0
)
could calling your control data be a conflict with cakephp?
On Jan 14, 11:37 am, MrDevin mr.de...@gmail.com wrote:
First of all thanks for your insight and taking the time to help. :D
if $this-data['Datum'] is as follows:
[code]
Array
(
[0] = Array
(
[id] = 173
I will not state whether it is a good or a bad idea! Rather I would
like to ask the question:
Do you have a need for this relationship Tag HABTM Tag? In other
words, what are the reason/requirement for making this solution?
If you can answer the above, and your solution solves it, then it is a
On 1/14/2010 8:08 AM, emptywalls wrote:
That did it! Thanks so much! Took a little figuring out, but I see
what ya did there.
After you get a hang of the Containable behavior you'll never use
anything else.
Check out the new CakePHP Questions site http://cakeqs.org and help others with
On 1/14/2010 12:03 PM, hasentopf wrote:
Can anyone explain how I can include the Cake core application in my
projects???
Many thanks!
I'm using Build id: 20090920-1017.
Project - PHP Include PATH - Libraries - Add External Source
Folder... - select Core location - Done.
HTH.
Check out
Thanks,
This is a good idea. I am at home now I will try changing my
controller in the morning. (posting from Germany)
But I think that this has more to do with the Model which is called
Datum but at this poin I am willing to try anything so i will give it
a shot.
On Jan 14, 6:43 pm, scs
I have an application I am trying to build. I have ACL setup and I
have the following groups.
-Admin
-Merchants
-Users
I want to be able to signup all users by selecting what group they
belong to and enter a username and pass for them.
Then once they are registered they can edit there account.
Hi,
i have some problems with cakephp paginator helper.
i have two tables with HATBM relation, contributions and details. in
the last one i have an amount field (decimal).
i would like to get the sum(amount) in my paginate resultset.
i try to bind model but it doesnt work for me.
i need your
the getColumnType() is making me think there is something with the
data and either your model or your database. can you show us both your
model and database scheme for this table?
On Jan 14, 3:02 pm, MrDevin mr.de...@gmail.com wrote:
Thanks,
This is a good idea. I am at home now I will try
I've been having a little bit of a problem with my app when using the
Email component.
I have a simple Contact form with around 8-10 fields. When the user
submits the form, the data is stored in the database as well as
sending out an email to the admin that a submission has been made.
For some
Using CakePHP 1.2.5 and it seems the 'on' key option is broken. In
the following code defined in my model,
var $validate = array(
'original_domain' = array(
'domainRule1' = array(
'rule' = array('checkUnique',
http://www.milesj.me/blog/read/71/PHP-Pro-Tip-Dont-Close-Your-PHP-Documents-With
On Jan 14, 8:19 am, keymaster ad...@optionosophy.com wrote:
Bingo !
Thank you.
Surprisingly, there were quite a few cake files in the core with
trailing white spaces, as well.
I opened a ticket in lighthouse
Oh I also forgot, Hotscripts runs Cake.
http://hotscripts.com
On Jan 14, 12:19 am, Matt Bianco msied...@mfz24.de wrote:
It's a German car pooling / ride sharing platform:www.mitfahrgelegenheit.de
Thanks to cake we can easily do our roll outs to other countries
(e.g.www.pamemazi.grwhere we
Thanks for your input. It looks like below. I think I may have the Model name
in the wrong place?? I'm using: echo $form-create('Rental', array('type' =
'file', 'action' = 'edit')); to create the form.
Array
(
[Rental] = Array
(
[id] = 60
[rental_code] = code
Hi, thanks for your suggestion. I tried it but I am still having the same
problem.
Nadal wrote:
Hi, koala kid
Try to add 'foreignKey' It can cause your problem.
?php
class Rental extends AppModel
{
var $name = 'Rental';
var $hasOne = array(
'Rate' = array(
When paginating data in a view, is there a relatively straightforward
way to sort a table of data on 2 or more columns...such as last name,
then first name?
Or, on a derived column, such as age, after being derived from date of
birth?
Thanks,
David
Check out the new CakePHP Questions site
I get this error as soon as i login
Could not find AclComponent. Please include Acl in Controller::$components.
[CORE/cake/libs/controller/components/auth.php, line 378]
Fatal error: Call to a member function check() on a non-object in
/home4/public_html/cake/libs/controller/components/auth.php
i didnt know until i was notified about this bug
somehow people get a white screen of death while trying to log in
doesnt matter if it is successfull (after one reload they are then
logged in)
or if they fail the authentication
the auth component seems to work - returns true or false on login()
i
Hi,
I'm sure I have seen this somewhere, but can't remember where. How do I save
a field and make sure that modified is not changed?
For example I have a view column in my posts table, in my view action I do
this after finding the post:
$views = $post['Post']['views'] + 1;
$this-Post-id =
Hope someone can help me with this issue. When I enter HTML code in a
text or textarea field and submit, the HTML code is somewhere
automatically stripped out by CakePHP.
At the very top of my controller function (just after !empty($this-
data) and before any validation or my own cleanup is
Never mind. I had any over-rigorous form data cleanup in the
before_filter of my app_controller.php.
On Jan 14, 11:25 pm, Dewald Pretorius dpr...@gmail.com wrote:
Hope someone can help me with this issue. When I enter HTML code in a
text or textarea field and submit, the HTML code is somewhere
One of possible cases - slow SMTP server.
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
Does anyone know how to get a list of all the actions in the controller? Not
all actions in all controllers, just the current controller being accessed.
Thanks
Dave
Check out the new CakePHP Questions site http://cakeqs.org and help others with
their CakePHP related questions.
You received
Hi All,
I am having trouble trying to add multiple translations for a single
record, basically I have the follwing setup:
tables:
[content]
[i18n]
now I want to be able to add multiple translations for a single record
so i have the following;
[content][record 1]
[i18n][en-gb]
Hello Dave,
You can use:-
$c_class=get_class();
$c_methods = get_class_methods($c_class);
$c_methods will give you an array of all the methods of the current class.
Regards,
Amit
Check out the new CakePHP Questions site http://cakeqs.org and help others with
their CakePHP related questions.
Hello,
try this :-
$this-Demo-paginate= array('fields'=array('You fields','sum(amount)'));
$this-Demo-paginate('Demo');
Regards,
Amit
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
Hi..
I am new to cake php. Here is my task.
Present URL :
www.example.com/post/view/1 { where '1' is the Id of the post. }
I want to use a column other than Id(a column called URL) to be
passed for SEO.
www.example.com/post/view/my-first-post {where my-first-post is
the value of the
What you want is Virtual Fields!
Virtual fields is one of the new features in CakePHP 1.3 and is there
to solve your EXACT problem.
http://cakephp.lighthouseapp.com/projects/42648/13-new-features-virtual-fields
On Jan 14, 3:04 pm, John Andersen j.andersen...@gmail.com wrote:
As far as I know,
Use the models updateAll method! From what I can read from the source,
this method does not change the modified column. This method is also
used by the counterCache update method, and the counterCache does not
change the modified column, so give it a try. See:
updateAll(array $fields, array
Exactly like you would an ID. You just except a string instead of an
integer, when writing the regex. Even then you can do it with basic
routing.
// Link
$html-link('Title', array('controller' = 'posts', 'action' =
'view', $slug));
// Action
function view($slug) { }
On Jan 14, 10:53 pm, Robin
57 matches
Mail list logo