Thanks a lot, it worked perfectly fine :-) But the "time part" in
the created field is not having the correct value for current time ...
what should be done in that case...
On Apr 12, 9:23 pm, brian wrote:
> Change the field name to "created" and add another named, "modified".
> Both of th
I think you replied to the wrong post :P
--~--~-~--~~~---~--~~
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
c
Cant you just use nl2br() ?
--~--~-~--~~~---~--~~
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+unsub
Anybody know if there is function similar to str_replace?
I need to replace \r\n with in my view. Currently, I use str_replace. I
wonder if there is any function like this.
This is what I use now in my view.
str_replace("\r\n", "", $article['Article']['content'])
--~--~-~--~~--
So what exactly is the problem? Also is state an association of user or the
post?
The state is associated with the User only.
The problem is I do not need all the information the post is returning in
the pagination.
SELECT `Post`.`id`, `Post`.`user_id`, `Post`.`contact_first`,
`Post`.`contact_l
You need to set the data before hand.
$this->Customer->set($this->data);
Then validate it:
$this->Customer->validates();
But you dont even need to do that, save() does it automatically.
$this->Customer->save($this->data);
--~--~-~--~~~---~--~~
You received this
Well if you want a custom date:
echo $time->format('m/d/y', $timestamp);
--~--~-~--~~~---~--~~
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
You would have to add another column in the state table. But im
guessing thats what abrev, is for.
I also dont see how echoing the state_id outputs California, can I see
your code?
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Go
So what exactly is the problem? Also is state an association of user
or the post?
--~--~-~--~~~---~--~~
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 unsu
Been messing around with this for quite a while now. I want to request
Pagination using Contain on my Post...but I want to select specific fields
to query from Post also.
The Post has a lot of useless info not needed in the pagination layout so
all I need from the Post is Post.title, Post.descrip
Hi!
I would like to let Cake choose the appropriate language from an array
of languages and if nothing fits use a default language, how is that
possible?
How can I set the User-Language, I found those tree, which works or
does all work the same way?
Configure::write ( 'Config.language', $lang );
Okay, so I'm working on creating a website where one of the things
people can do is add their birthdays, each day of the year is listed,
and peoples birthdays are listed inside of the views for the days as
"related birthdays" with standard bake format. Been trying forever to
figure out what I nee
My mistake in typing.
User hasOne Profile, Profile belong to User, Profile hasOne State, State
belongsTo Profile
User makes a Post where it puts some info from the his Users Profile (his
name city and the state) But on his profile it's the full word California,
in the post I would like CA so Pom
Dave Maharaj :: WidePixels.com wrote:
> I have a states table which holds id, abrev, name
>
> My user profile displays the State.name based on the id. (HABTM table)
>
> displays California
>
> How can i get it to display CA rather than the full name?
>
> the controller gets the user info
Hi,
An "admin" is a normal user which has tinyint admin set to "1".
"Becoming a user" means to make Auth think that the logged in user is
the user the admins wants to be. The target is that an admin can see the
website like the normal user does with all the relations and stuff.
bally.z...@gma
Hi,
I've got a basic Authentication with the Auth-Component. The Auth Model
is called 'user'.
I'd like to implement an admin-area where an admin can become an user.
How can this easily be done?
Cheers
Marcel
--~--~-~--~~~---~--~~
You received this message be
I have a states table which holds id, abrev, name
My user profile displays the State.name based on the id. (HABTM table)
displays California
How can i get it to display CA rather than the full name?
the controller gets the user info by:
$this->set('users', $this->paginate());
Thanks,
D
Hi,
I'm using cake for a while and have problems with prefix routing in
every project I created. Its behavior is not what it should be. The
following issues happened to me:
* setting any other named params the prefix becomes one of the in the
format $prefix:1. This makes some problem with paginati
I'd also call the function genre() in case I ever wanted to add a
broader similar() functionality.
On Sun, Apr 12, 2009 at 3:25 PM, brian wrote:
> There's no need to search on Genre as you have the foreign key already.
>
> function similar($genre_id)
> {
> return $this->find(
>
There's no need to search on Genre as you have the foreign key already.
function similar($genre_id)
{
return $this->find(
'all',
array(
'fields' => array(
'Book.id',
'Bo
Hi,
I could successfully update one select box based on selection in
another ..
But the problem is that this updation is taking some time ... till
then i need to show
the ubiquitous loading image ..
find the code in the link below which am using
http://abhishekjain.pastebin.com/m6815e6ce
Reg
Sorry to bother...figure it out. Just made my own helper to return the date
variable I needed.
Dave
_
From: Dave Maharaj :: WidePixels.com [mailto:d...@widepixels.com]
Sent: April-12-09 3:46 PM
To: cake-php@googlegroups.com
Subject: Time helper
Does anyone know how to edit the time h
Does anyone know how to edit the time helper to output something custom? I
want to break the date up into Month and day so I can use it in a fancy date
tab image like this
http://www.iconarchive.com/show/openphone-icons-by-walrick/Calendar-icon.htm
l
Thanks
Dave
--~--~-~--~~-
When I run this code, It always returns "OK!".
Have I done anything wrong?
Where it is:
http://bin.cakephp.org/view/314165420
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups
"CakePHP" group.
To post to this group, s
Wouldn't it be much easier to have a users table, with a field such as
temp and make it booleanso you are either temp or not temp. It would
be much faster, and less pointless then keeping users separate.
On Apr 12, 9:03 am, brian wrote:
> There shouldn't be any reason to associate TempUser & Use
Change the field name to "created" and add another named, "modified".
Both of them should be defined like so:
DATETIME DEFAULT NULL
Cake will then set the value when/where appropriate.
On Sun, Apr 12, 2009 at 2:05 AM, gaurav.v.sharma
wrote:
>
> Hi all :-),
>
> I have created a small applicatio
On Sat, Apr 11, 2009 at 12:57 PM, wilfredo
wrote:
>
> I have a problem when I try to select distinct fields in an associated
> model with find. The models "Address" und "Expertise" have a HABTM
> relation.
>
> I have the following code in my controller. (There is no table named
> mitglieder).
>
>
Just use regular find() with conditions:
$this->User->find(
'first',
array(
'conditions' => array(
'User.slug' => $slug
),
'contain' => array(
// ...
)
);
On Sat, Apr 11, 2009 at 6:09 PM, Dave Maharaj :: WidePixels.c
There shouldn't be any reason to associate TempUser & User. If your
temp_users & users tables are the same, then you'd just move the row
from one to the other. You can either do this in your UsersController:
$uses = array('User', 'TempUser');
... or use ClassRegistry whenever you need to do some
The Cake Console isn't a PHP script, it's a shell script that calls a
PHP script as you see from the output you get (the line: exec php -q $
{LIB}cake.php -working "${APP}" "$@" ), so you don't need the "php"
bit in your crontab, you might however need to specify the APP
directory manually as cron
Can't you just overload _welcome() in your shells?
-Mark
On Apr 11, 4:42 pm, mattalexx wrote:
> Is there anyway to not display the header?:
>
> Welcome to CakePHP v1.2.2.8120 Console
> ---
> App : app
> Path: /path/to/app
> ---
Okay, so after more searching around I found a post by pkclarke who
makes use of a search on the join table, and then uses a find() with
those results.
I still have the feeling this is not the best way it should be done,
but I think this approach will allow me to move forwardand no
requestAct
is there any jquery plugin like this mootools script
http://www.xhtml-css.eu/
Click there on Website Samples
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups
"CakePHP" group.
To post to this group, send email to cake-
Sergei
As AD7six stated earlier
"Indeed you can't distribute any copies of the book's contents
(regarding other comments in this thread) which prevents (~immediately
outdated) copies of the book springing up and being found by the
nubies. "
So I'm not going to be able to upload a pdf for you.
On Apr 12, 5:43 am, Sergei wrote:
> Can you upload generated PDF to some file-sharing hosting server?
Do not do that.
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups
"CakePHP" group.
To post to this group, send em
Hi everybody,
i have standard actAs Tree model,
how to show parent name in listing view
ex:
childer name - parent name - created
childer name - parent name - created
childer name - parent name - created
best regards
Baurzhan
Kazakhstan / Shymkent
www.megahosting.kz
--~--~-~--~~
Hi all :-),
I have created a small application using the bake command. While
designing the database for the application I created a column named
"creationdate" in every table so as to record the date and time of
that operation.
I donot allow user to enter this "creationdate" value infact I have
Hi, I have a doubt in designing a model. I want to provide users the
ability to register but not have them in user table until they confirm
with a link sent to them with a random id after storing their
information in a tempUser table. Once they confirm their information
would be copied to users ta
Seems like you don't have permission to write on /var directory of the
server, as PHP tries to write the session file to that directory.
This is something you need to check with your sysadmin.
-- Edmundo.
On Sat, Apr 11, 2009 at 12:24 PM, P. Phunky wrote:
>
> Hey all,
>
> installed Cake on an
Thank you very much for the example
On 12 abr, 00:03, Miles J wrote:
> Yeah this one took me a while to figure out
> also:http://www.milesj.me/blog/read/24/pre_populating-form-values
--~--~-~--~~~---~--~~
You received this message because you are subscribed to th
My cake with apps, are stored in /cakephp and I have my webroots in /
public_html/FOLDER, well the problem is I can't seem to get my
htaccess to work. I don't exactly grasp the htaccess process, so after
doing some searching my htaccess in my webroot looks like this
RewriteEngine on
RewriteRule s
Thank you, problem has been solved!
On Apr 11, 5:26 pm, "rich...@home" wrote:
> I'm guessing you still have all the old directory information cached.
>
> go to app/tmp/ and remove all the files in all the subfolders but
> leave the subfolders intact.
>
> On Apr 11, 12:58 pm, AD7six wrote:
>
>
>
On Sun, Apr 12, 2009 at 3:52 AM, gimmebucks wrote:
>
> I want the system to display :
> "You are not authorized to access that location."
>
> But not
> "You are not authorized to access that location.
> 1"
>
> Please help.
Just like brian said, remove the echo. Instead of:
echo $session->flash
43 matches
Mail list logo