How can I select records where a column doesn't contain any value,
like ''.
Doing it like this $this->Document->find('all', array
('conditions'=>array('Document.title'=>''))); produces a WHERE
`Document`.`title` = NULL query and that's not right.
What I need is a WHERE title='' query returned.
Hello, I hope you read the official manual. For any assistance in
Croatian, please find me on Twitter (@IvanBernat)
(lang=hr) Dobro došao!
On Sep 26, 12:59 am, Ziki wrote:
> Hi,
>
> I'm new in cake, i have question about designing, and creatinglayout
> for my site,
>
> my site is on this domain
Okay, I know I wasn't crazy, after 3 hours of searching, I found it.
http://www.gersh.no/posts/view/embed_images_anywhere_in_cakephp
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups
"CakePHP" group.
To post to this g
Hi guys!
I saw a really neat piece of code a few weeks ago, but forgot to
bookmark it and am running crazy now.
I was actually a component that did the following:
You put [image:123] in your text (e.g. Post text) and save it.
When you're reading the data out, you do $post['Post']['text'] = $th
Hi guys!
I'm having some really weird problems on the client production server.
The problem is: When ever I make an action (e.g. add a record, add a
cookie, store a session) I have to make a second browser refresh to
actually get the action working.
So, I add a record, redirect to "index" actio
If you need only static pages you don't need models.
Just place your pages in the views/pages folder
E.g. if your page is about-us.ctp you'd access it via
www.mysite.com/pages/about-us
You can further alter the routes.php in /config folder to remove the /
pages in the URL
On Jun 1, 10:02 pm,
- PHP 4 support+++
- No namespaces+++
- No built in Uploader component++
- No native Image component
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups
"CakePHP" group.
To post to this group, send email to cake-php@goog
I want to enable my users to upload customized versions of the index/
view templates.
Is there a way I can restrict them to use only PHP variables and
object methods?
I'm asking, because if a user uploads a customized template (.ctp) I
don't want it to include malicious code (e.g. listing direct
Well, first of all, you need to validate the data before saving it.
http://book.cakephp.org/view/125/Data-Validation
Then, you might consider sanitizating the submited data
http://book.cakephp.org/view/153/Data-Sanitization
And then, you can even go ahead and allow only certain fields to be
sa
Try this
function index() {
//obtiene todos los ingredientes y los pasa a la vista:
$usuarios = $this->Usuario->find('all'); // wrong Model name
$this->set('usuarios', $usuarios);
}
On Apr 27, 7:44 pm, Pablo wrote:
> I just installed cakephp and made my first model,
Set debug = 0 in app/config/core.php
On Apr 22, 12:17 am, Beedge wrote:
> Hi all,
>
> I have recently decided to learn a framework, and from what Ive seen
> Cake is the way to go,, So I ve gotten my hands on 'Practical cakePHP
> projects'
>
> Im doing the first blogging tutorial, and my first at
Why not a project that integrates a bunch of services into a single
one? :)
--~--~-~--~~~---~--~~
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 unsubscrib
Ooops, sorry, thought you were talking about me :-) My 5 star rating
is still up :-)
On Feb 10, 10:25 am, BeroFX wrote:
> @Herman:
>
> Man, I'm really sorry. I'm the guy that rated you, but I chose 5
> stars, not 1 (!?!?).
> I have no idea why
@Herman:
Man, I'm really sorry. I'm the guy that rated you, but I chose 5
stars, not 1 (!?!?).
I have no idea why Mozilla entered it as one :-(
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups
"CakePHP" group.
To post
I just noticed I can't open it, while it was working just fine last
week.
--~--~-~--~~~---~--~~
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
A forum, Cake needs a decent forum (www.cakephpforum.net is offline
90% of the time),
a knowledge base with snippets and articles..
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups
"CakePHP" group.
To post to this grou
Hi guys!
Imagine you have a standard social network with users who can have
blogs, pictures and videos.
I need to setup my routes like this:
http://www.mysite.com/michael --> this is like /
users/view/123
http://www.mysite.com/michael/videos/123 --> this would show
michaels
So, I baked some views and looking at the code you get:
link(__('Edit', true), array('action'=>'edit',
$bookmark['Bookmark']['id'])); ?>
Which prints out an "Edit" link. How do I add a CSS class to this so I
can have a little icon next to the text?
note: I have the css code.
Also, can anyone e
@Sliv Thanks man!
On Apr 29, 8:08 pm, Sliv <[EMAIL PROTECTED]> wrote:
> look for a file called home.(ctp|thtml) and edit it.
> then read this:http://book.cakephp.org
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups
"C
OK, I got through the blog tutorial. How do I make a default or better
said HOME page
(the one users will see first) with the latest blogs, blog of the day
etc.
Actually, just tell me how to make the home page, I'll figure out the
rest :D
--~--~-~--~~~---~--~~
Yo
Does anyone have a link or an example of a Cake site?
What I'd like to see is a site with a main page, md5 passwords etc.
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups
"CakePHP" group.
To post to this group, send
21 matches
Mail list logo