Great Thanks!!
On 10 Nov., 18:06, Andras Kende wrote:
> You might want to add $options['direction'] as:
>
> Paginator->sort($text, 'OBJ_PREIS', array('direction' =>
> 'desc'));?>
>
> Andras Kende
> http//www.kende.com
>
> On Nov 10, 2011, at 9:23 AM, heohni wrote:
>
>
>
> > Hi,
>
> > I really do
You might want to add $options['direction'] as:
Paginator->sort($text, 'OBJ_PREIS', array('direction' =>
'desc'));?>
Andras Kende
http//www.kende.com
On Nov 10, 2011, at 9:23 AM, heohni wrote:
> Hi,
>
> I really don't get it sorted out...
>
> my degault sort direction is ASC
>
> in my view
Hi,
I really don't get it sorted out...
my degault sort direction is ASC
in my view I have this:
sortDir();
$text = ($sortDir == 'asc')?__('getting higher',
true):__('getting lower', true);
?>
Paginator->sort($text, 'OBJ_PREIS', $options
= array('escape' => false, 'c
My find fields array is already having my new date In first parameter however
it still comes in last. Pls suggest if you have something else in your mind.
Regards
Tapan Thapa
India
Sent from my iPhone
On Feb 20, 2011, at 9:21 PM, John Andersen wrote:
> This is speculation only, but maybe de
john is still right, though
the data should be finalized in the view
this way you can customize it better
simply use a "csv" layout (settings headers) which uses the custom csv
view you generate (using a csv helper).
On 20 Feb., 16:51, John Andersen wrote:
> This is speculation only, but maybe
This is speculation only, but maybe define your field parameter in the
find statement, so that the "newdate" comes first!
Enjoy,
John
On Feb 20, 4:42 pm, Tapan Kumar Thapa
wrote:
> Thanks for your suggestion.
>
> I have implemented this in my model.
>
> var $virtualFields = array(
> 'n
Thanks for your suggestion.
I have implemented this in my model.
var $virtualFields = array(
'newdate' => 'DATE_FORMAT(Incoming.date, "%d-%b-%y")'
);
It works as charm however now i have got another problem.
now my new date is coming in last like this.
SELECT `Incoming`.`time`, `In
Please show us how the view code looks like, maybe we can suggest
something based on that.
If you can't then you may be able to use a virtual field for this,
look at the CakePHP book at:
http://book.cakephp.org/view/1608/Virtual-fields
Enjoy,
John
On Feb 20, 3:45 pm, Tapan Kumar Thapa
wrote:
Unfortunately no(:-
I have an export csv option via a html link and i am not presenting this
data to my view.
Please suggest if this can be achieved in controller itself.
Regards
Tapan Thapa
India
On Sun, Feb 20, 2011 at 8:08 PM, John Andersen wrote:
> Presentation of the data, your date a
Presentation of the data, your date and time fields, should be done in
the view, not in the controller, so just move the formatting to the
view. Would that be an acceptable solution for you?
Enjoy,
John
On Feb 20, 2:58 pm, Tapan Kumar Thapa
wrote:
> Hello Community,
>
> I have an export functi
Hello Community,
I have an export function in my controller.
function export() {
$this->layout = '';
$startdate = $this->Session->read('startdate');
$enddate = $this->Session->read('enddate');
$this->set('Export', $this->Incoming->find('all', array(
give us more Data...
var_dump $city ...
On 4 feb, 02:37, andy_the ultimate baker
wrote:
> hi,
> good morning,
>
> since i morning i am working on one index view where i want to display
> the country. ithe the view i m getting sate and city with its
> respective code properly, but the country is
I am almost tempted to say:
"will u please make it short and approachable to ur point,
becouse no one is having to read a long theses of ur query on the
work
so please make it shor and come in pints, so it would be fine to give
u answer"
...but I won't.
What do you see when you do:
...immedia
hi,
good morning,
since i morning i am working on one index view where i want to display
the country. ithe the view i m getting sate and city with its
respective code properly, but the country is not displaying
here is my code
Html->link($city['Country']['title'],
array('controller' => 'countries
On Jan 18, 2011, at 01:40, andy_the ultimate baker wrote:
> i m trying to redirect the action on a controller but it is
> redirecting to another controller action.
> //users_controller.php
> function admin_add(){
> if(!empty($this->data)){
> if($this->save($thi
from where do you call to the users controller ?
On Tue, Jan 18, 2011 at 6:40 PM, andy_the ultimate baker <
anandghaywankar...@gmail.com> wrote:
> hi,
> i m trying to redirect the action on a controller but it is
> redirecting to another controller action.
> //users_controller.php
> function admi
hi,
i m trying to redirect the action on a controller but it is
redirecting to another controller action.
//users_controller.php
function admin_add(){
if(!empty($this->data)){
if($this->save($this->data)){
$this->Session->setFl
SOLVED. Setting permission can be done using the function build_acl
regards,
Maxim
On Dec 31 2010, 4:19 pm, John Maxim wrote:
> Hi I don't understand this:
>
> cake acl grant john /controllers/posts/edit *
>
> Now I am giving John all permission for edit node ??
>
> All permission for edit node
..Thanks Jeremy and everyone who contributed here.
Regards,
Maxim
On Jan 1, 2:47 pm, Jeremy Burns | Class Outfit
wrote:
> I think what AD was saying is that the primary purpose of a UUID *when
> compared with an integer* is that it is globally unique across all servers,
> not just 'this' serve
Yes, I understand, will work on it soon. Thanks..
Regards,
Maxim
On Jan 1, 2:31 pm, Jeremy Burns | Class Outfit
wrote:
> Slight typo: it is of course /cake/libs/controllers, not
> /cake/libs/controller.
>
> Jeremy Burns
> Class Outfit
>
> jeremybu...@classoutfit.comhttp://www.classoutfit.com
I think what AD was saying is that the primary purpose of a UUID *when compared
with an integer* is that it is globally unique across all servers, not just
'this' server, which of course I forgot to point out in my original reply. This
means you have a choice of data type when creating a primary
Slight typo: it is of course /cake/libs/controllers, not /cake/libs/controller.
Jeremy Burns
Class Outfit
jeremybu...@classoutfit.com
http://www.classoutfit.com
On 1 Jan 2011, at 06:27, Jeremy Burns | Class Outfit wrote:
> This is the standard way of doing things. The /cake/libs folder contains
This is the standard way of doing things. The /cake/libs folder contains
/controller/pages_controller.php and /views/pages/home.ctp that provide the
default home page. There is also a default layout. You should never adjust
these as it breaks the upgrade path, but one of the first things you sho
Since I found a solution, share this if someone facing this too it may
help..
not sure if it's exactly suggested production setting (installation)
I copied and pasted home.ctp from cake/ to my app/views/pages
from here I edit the home.ctp and works fine.
reference: IRC cakephp user: know1edge
So normally we don't use char(36) ? and its primary purpose is not for
data /model integrity .. if I hear you right, AD.
Is the Model::save method the way we usually save by calling
function add()
{
}
are there additional steps ?
thanks, best regards.
Maxim
On Dec 29 2010, 7:29 am, AD7six wr
Hi people,
I need this solved, help if you can. how exactly do I start my page at
localhost/ without displaying Cake's system info page..?
Rgds,
Maxim
On Dec 31, 9:00 pm, John Maxim wrote:
> Hello everyone,
>
> My index now is in my root */www/
>
> Anyone knows how to remove the cake system page
Hello everyone,
My index now is in my root */www/
Anyone knows how to remove the cake system page ? now it just display
the Cake system page everytime it is routed to http://localhost/
I need it to be a customised page, such as, "Welcome to ABC company
etc... "
Urgently need help with this.
Re
Hi I don't understand this:
cake acl grant john /controllers/posts/edit *
Now I am giving John all permission for edit node ??
All permission for edit node ??? or just the right to edit ?
Also, when I host my App later, how am I going to run a cake
console ??? ???
Is it after changing the perm
Thanks @cricket and @John
@John I generated the code and then added the relationships manually .
Tried all from scratch ..and now it associates well and correctly :)
@Cricket will try both now
Thanks for the help
Karthik
On Fri, Dec 31, 2010 at 4:15 AM, John L wrote:
> Since we both trust th
Hi I'm stuck right here:
http://book.cakephp.org/view/1550/Setting-up-permissions
I don't know how to set the permission right, can anyone point this
out?
Is it either we can do one way or both ?
(1)
grant [] or all
Use this command to grant ACL permissions. Once executed, the
ARO
Since we both trust the generated code why don't you do the associations
using the bake command also? Much simpler.
I only mention the incorrect names as these were the names indicated in the
first message. It matters.
On Thu, Dec 30, 2010 at 12:03 AM, Karthikeyan P wrote:
> John
>
> I think
How are you including $user_id? There are more than one approache you can take:
echo $this->Form->hidden('Post.user_id', array('value' =>
$this->Session->read('Auth.User.id')));
Or you can add it to the submitted data inside the controller:
if (!empty($this->data))
{
$this->data['Post']['use
My document root is:
DocumentRoot "c:/wamp/www/"
Isn't it already pointing to the correct folder ?
Regards,
Maxim
On Dec 30, 8:37 pm, John Maxim wrote:
> http://book.cakephp.org/view/914/Production
>
> Hi, following the above link, I tried to build my App so it starts
> here:
> --http://lo
http://book.cakephp.org/view/914/Production
Hi, following the above link, I tried to build my App so it starts
here:
--
http://localhost/
--
I don't understand the link above..
I unzipped the cake's folder into my root which is in */www/ and
renamed the index.php file to something else b
John
I think the class name conventions are correct as the code is a generated
one ..I didn't write the code.It was generated by "cake bake" command .
*" Model 'Comment' has a 'comments' table, not a 'Comments'
table. "*
I have not defined anywhere as *Comments* Table..I have done as *comments
If the model names are Post and User then the table names should be
'posts' and 'users' lowercased. The field name is 'user_id' not
'UserId'. Model 'Comment' has a 'comments' table, not a 'Comments'
table. You have to respect CakePHP's File and Classname conventions,
see section 2.4.1 in the manual
I have created a Blog Application using a base table as 'Posts'. Later
Model-Associated with another table 'Users' with 'belongsTo'
relationship like below in the MODEL
var $belongsTo = array(
'User' => array(
'className' => 'User',
'foreignKey' => 'user_id',
'conditions' => '',
'fields' => '',
'o
On Dec 28, 3:55 am, John Maxim wrote:
> Hi Jeremy, Thanks for your link will definitely look into that.
>
> ~~Continue my question~~
> I was going to ask about using this:http://book.cakephp.org/view/1027/query
>
> There are 2 options if I'm correct based on cookbook 1.3
> ~~
> Rather than using
I would also add that it can be difficult to work with if you need to transpose
or retype/re-enter the ids at any time. Having said all that, I think UUIDs
have a definite place in an app.
Jeremy Burns
Class Outfit
jeremybu...@classoutfit.com
http://www.classoutfit.com
On 28 Dec 2010, at 20:59
On Dec 28, 2010, at 04:39, Jeremy Burns | Class Outfit wrote:
> I *think* the main benefit is obfuscation - if you want to hide the fact that
> I am only the third user, for example. It also makes it more difficult to
> guess the id belonging to another row in the table (for example, a table th
Hi thanks Vivi, should have known this after running the tests and
checked earlier..
(SOLVED)
On Dec 28, 5:17 pm, Vivi Vivi wrote:
> The test tables are created only when you run the tests, after it finished
> the tables are deleted.
> The tables are created from fixtures.
>
>
>
> On Tue, Dec 28
I *think* the main benefit is obfuscation - if you want to hide the fact that I
am only the third user, for example. It also makes it more difficult to guess
the id belonging to another row in the table (for example, a table that stores
company records). Disadvantages can be data size (a minor f
The test tables are created only when you run the tests, after it finished
the tables are deleted.
The tables are created from fixtures.
On Tue, Dec 28, 2010 at 10:02 AM, John Maxim wrote:
> Hi,
>
> I forgot to create the database for $test, so the test suite tables
> were populated into my $def
Hi,
I forgot to create the database for $test, so the test suite tables
were populated into my $default database. I dropped all the tables in
phpMyAdmin and removed simpletest folder from my *app/vendors. I
thought by replacing a new one (simpletest) unzipping in *app/vendors
after creating my $te
Hi Jeremy, Thanks for your link will definitely look into that.
~~Continue my question~~
I was going to ask about using this: http://book.cakephp.org/view/1027/query
There are 2 options if I'm correct based on cookbook 1.3
~~
Rather than using an auto-increment key as the primary key, you may
als
I would always have a non-inteligent single field as the primary key (id) and
then have a multiple field unique index on the other two fields. I'd also index
them independently for joins and performance. Your second solution looks
closest and it's also the way Cake works. See
http://articles.cl
Hi everyone,
I'm currently creating a table called "Foods_Ingredients", here is the
sql:
CREATE TABLE IF NOT EXISTS `foods_ingredients` (
`food_id` int(11) NOT NULL AUTO_INCREMENT,
`ingredient_id` int(11) NOT NULL AUTO_INCREMENT,
PRIMARY KEY (`food_id`,`ingredient_id`)
) ENGINE=InnoDB
--
amp.
>
> It seems Wamp is working fine with the previous DB versions - but not
> woith all new versions?.
>
> Any thoughts or any fixes or any ideas. Need URGENT HELP pleease
> guys.
>
> Error: The requested address “/” was not found on this server –
> CakePHP Error
>
amp. We are a global
provisioning team and have just added another partner to do our work
who is working in xampp.
Previously all work was done in wamp.
It seems Wamp is working fine with the previous DB versions - but not
woith all new versions?.
Any thoughts or any fixes or any ideas. Need URGENT H
>
> --
> View this message in context:
> http://old.nabble.com/urgent-help-tp27477638p27503835.html
> Sent from the CakePHP mailing list archive at Nabble.com.
>
> Check out the new CakePHP Questions site http://cakeqs.org and help others
> with their CakePHP related questions.
hi,
thanx alot..my code worked out...
Thanks.
--
View this message in context:
http://old.nabble.com/urgent-help-tp27477638p27503835.html
Sent from the CakePHP mailing list archive at Nabble.com.
Check out the new CakePHP Questions site http://cakeqs.org and help others with
their
; $this->Session->setFlash('Registration not saved. Try again.');
>>
>> > }
>>
>> > }
>> > }
>> > }
>> > ?>
>>
>> > The error is:
>> > Parse error: syntax error, unexpected T_OBJECT_
#x27;Registration not saved. Try again.');
>
> > }
>
> > }
> > }
> > }
> > ?>
>
> > The error is:
> > Parse error: syntax error, unexpected T_OBJECT_OPERATOR, expecting
> > T_PAAMAYIM_NEKUDOTAYIM in
> > C:\wamp\ww
Try again.');
>
> }
>
> }
> }
> }
> ?>
>
> The error is:
> Parse error: syntax error, unexpected T_OBJECT_OPERATOR, expecting
> T_PAAMAYIM_NEKUDOTAYIM in
> C:\wamp\www\cakephp\app\controllers\registrations_controller.php on line 10
>
troller.php on line 10
Please help me out in this
Thanks
--
View this message in context:
http://old.nabble.com/urgent-help-tp27477638p27477638.html
Sent from the CakePHP mailing list archive at Nabble.com.
Check out the new CakePHP Questions site http://cakeqs.org and help others with
th
> var $validate = array(
> 'fldCompanyName' => VALID_NOT_EMPTY,
> 'fldContactPerson' => VALID_EMAIL,
> 'fldAddress' => VALID_NUMBER
>);
the validate array in your model looks suspect.
try using the validation rules on this page:
http://book.cakephp.org/view/134/Core-
Hello Guys,
I am new with cake php and I am building a Invpoice Manager for one of
my cleint . I am stuck with data valdation an need your help to figure
out the error , data validation is not working . Plerase find all the
code below:
Controller
set('admins', $this->Admin->find('all'));
There was a post a while back about setting the Security level to
medium to fix a problem with IE7 and Auth that you might want to try.
On Jan 7, 11:32 pm, "mohammad al-ani"
wrote:
> OK today I find that the problem is just with the ie
>
> in the firefox the page load fine and never redirected s
OK today I find that the problem is just with the ie
in the firefox the page load fine and never redirected so what your
suggestions.
On Wed, Jan 7, 2009 at 6:35 PM, Webweave wrote:
>
> if you change the debug level, you should be able to see the error
> that is causing the problem.
>
> My gues
if you change the debug level, you should be able to see the error
that is causing the problem.
My guess would be a problem with the rewrite stuff in your htaccess
files.
On Jan 7, 2:16 pm, "mohammad al-ani" wrote:
> I use auth
>
> On Wed, Jan 7, 2009 at 1:57 PM, gearvOsh wrote:
>
> > Are you
I use auth
On Wed, Jan 7, 2009 at 1:57 PM, gearvOsh wrote:
>
> Are you using Auth or ACL?
> >
>
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups
"CakePHP" group.
To post to this group, send email to cake-php@googleg
Are you using Auth or ACL?
--~--~-~--~~~---~--~~
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+unsubs
hi all I'm new in php cake
I go easily along it's way working and I build the first site with it
but along this way I face a big problem, and the problem is when I try
to enter the /users/login I see the login page and it's stop for a
while and then auto redirected to error page of 404 I don't k
63 matches
Mail list logo