Hi mikee,
thanks for your reply.
On 17 Feb., 03:24, "Mikee Freedom" <[EMAIL PROTECTED]> wrote:
> Couldn't you change your index action of your Categories controller to
> accept a slug instead of an id?
sure i could. my thoughts were that i want to have jokes as the
primary output so the joke co
No worries, got your message :-)
Langdon
> Hey not sure if you got my previous message but I just want to say
> thanks for the help. It doesn't look like it posted my reply on the
> post.
--~--~-~--~~~---~--~~
You received this message because you are subscribed
Hi NOSLOW
The most important part of the code that I use is pasted below. It
comes from the view file
1.
--
This bit renders the select tag that we want to monitor. It's just a
standard select tag.
selectTag(
'Batch/lot_number_type',
$lotNumberTypes,
null,
array(),
When users register, I have this code to insert their data:
if ($this->User->save($this->params['data'], true, array('username',
'password')))
{
$this->saveField('type', 'Normal User');
}
I also have this beforeSave function in my User model to md5 the
passwords:
function beforeSave()
{
Hai,
I have one question with validation.
I have an edit form that displays the details:
Id:
Project Name:
Start date:
End date:
Project name must have validation ie; should be all alphbetic
charecters. Validation has worked for me but i want the data that the
user has entered in to the text b
Thanks for your response but after posting I was too impatient and
jumped unto the irc channel. I'm posting the solution here to help the
newbies like myself who might not readily take advantage of debug options.
The real problem was my foreign key names. for example I had
"Locations_id". What
I have tried to read the manual and look at examples but I am having a
hard time with associations.
For one, I have a three tables. Trips, Itineraries, Events
Each has one Itinerary, Each Itinerary has many events.
What i really want right now is to connect my Itineraries to Events,
Currently w
Hey Helmi,
Couldn't you change your index action of your Categories controller to
accept a slug instead of an id?
i.e. from an url like
/category/testcat
in your CategoriesController, modify your index action to receive a
slug as it's sole parameter.
function index ($slug = null)
{
}
Then,
Hi majna
As you say, this isn't about Cake, its just a PHP design patern.
What you suggested is pretty much what I do, except that I get the
language setting from the browser. To allow me to cache views though I
will need to do as you are suggesting and add the language to the URL.
Langdon
Hi peper
Your situation is similar to mine. My solution is for a product would
be, store a reference to the appropriate text string instead of a field
of text in the product record.
So you have one "description" field that holds a key for the string (and
all of its translations)
Store the t
Make sure that your var $helpers includes the value for form helper
in your controller you need to have
var $helpers = array('Html','Ajax','Form');
say if you want to be able to use the formHelper from your views. It
seems pretty stable to me and it is totally addictive ;) But it is
still in d
Thanks the link explained it pretty well but i think it is still very
buggy so i probably think ill go back to the stable 1.1
with :
create(array('default' => false)); ?>
it tells me that $form is not defined, so when i put on the top:
$form = new FormHelper();
Then it gives me :
Fatal error
Forget about my previous post, and my sincere apologies to Evan Sagge,
his fine piece of code have no connection with my misery. I "baked"
from ground up the models, controllers and views for the tables
involved and the vanilla CakePHP validation is presenting the same
behavior with multiple selec
One thing I am sure about: This problem is not related with the
"vanilla" CakePHP 1.1 validation. Im using "Evan's CakePHP Validation
Technique 2.0" (http://blog.evansagge.com/2006/12/28/evans-cakephp-
validation-technique-20/) and Im pretty sure theres a bug at the
validation class causing this b
Given that 1.2 is still marked as development I wouldn't expect
official documentation on it yet. You can find some information on
the form helper for 1.2 at
http://cake.insertdesignhere.com/posts/view/15 also the api can be
reached at api.cakephp.org/1.2/ though that is probably subject to
chan
Try this
http://fabforce.net/dbdesigner4/
-Messaggio originale-
Da: cake-php@googlegroups.com [mailto:[EMAIL PROTECTED] Per conto
di [EMAIL PROTECTED]
Inviato: venerdì 16 febbraio 2007 22.28
A: Cake PHP
Oggetto: Re: Any diagram to sql DDL script generator for MySQL?
The MySQL tools
Ok i am following the IBM tutorial for Tor but now i get this error
with the registration form:
(HtmlHelper::formTag) Deprecated: Use FormHelper::create instead
To what should i change this? and how do i find what is changed in
1.2?
formTag('/users/register') ?>
--~--~-~--~~---
i'm not sure what you mean by this.
you can use the Cake error helper to output your error messages. I
think if you provide the true return argument you can retrieve the
error and do whatever you like with it.
I'm using the "advanced validation" method of 1.1.x.x, but I think 1.2
has better vali
The MySQL tools aren't bad, but I've also used Access a fair bit.
http://dev.mysql.com/downloads/gui-tools/5.0.html
The problem with Access is some slight compatibility issues with field
types, especially date/time.
phpMyAdmin is what I now use the most.
http://www.phpmyadmin.net/home_page/ind
This is an issue that was patched shortly after the most recent
release. Basically, when setting a Location header, PHP overrides the
status code with 302. Downloading the latest nightly of 1.2 should
solve the problem.
nateklaiber wrote:
> In 1.1 you were required to call exit() after your red
Hi there. I'm quite new at cake but definitely jumping in to it.
I have a question though. What would be the best way to set up a cake
site with a dynamic menu + submenu. The way i see it i have to send
two values to the controller so that the path would look like /
controller/view/menuItem/subMen
In 1.1 you were required to call exit() after your redirect. This was
not a problem, but looking at the API for 1.2 - you can specify the
exit call within the function:
function redirect($url, $status = null, $exit = false)
I also like that you can specify a status code as well. However, I
have
Sounds like the problem is not that you don't have a layout - you don't
have an element (views/elements/email/text/myEmail.ctp).
Now I'm trying to figure out why variables set in my controller aren't
available to my email. Wondering if I'm somehow unsetting them somewhere
else...
Regards!
-T
Hi,
I'm new to LAMP and cake, trying to make a project from scratch. Is
there any GUI database creating tools from ER diagram recommended? So
i can work out my DB table definitions like in M$ Access, to jump into
baking rapidly.
Thanks in advance.
--~--~-~--~~~---~--
Hi list,
i'm new to cakePHP so sorry if this has been answered 100 times before
but i couldn't find something like this.
I'm currently developing my first little test project with cakes which
is a simple joke-directory. I have two models: Joke and Category. To
the categories table i added a slug
I do programming for a living and there's another programmer in my shop
who uses PSPad almost exclusively. He really likes it. I have to say I
like the simplicity of it. I'm mainly interested in an editor that
provides syntax highlighting and the gets out of my way. PSPad does fit
the bill in tha
products table: add language_id.
for language detection add lang in URl,
like: products/view/en/123... or somethin else.(so page could be
linked)
grab this "lang", find language id and select from products where
language:id
put language_id in session etc.
This is not CAKE feature, but genera
Nevermind, I figured it out. I just edited the $app to point to '/
home/domains/www.domain.com' and it worked.
On Feb 16, 3:03 pm, "nateklaiber" <[EMAIL PROTECTED]> wrote:
> My setup is a little different from the default setup for cake (1.2
> nightly).
>
> I have the core cake library shared am
My setup is a little different from the default setup for cake (1.2
nightly).
I have the core cake library shared among several other domains. The
structure looks like:
/home/core/cake
/home/domains/www.domain1.com/webroot
/home/domains/www.domain2.com/webroot
The core holds files/aliases I nee
Hello,
I try to use Email component, but I always get back the next error in
the mail:
Error rendering Element: email/text/default
I made the default.ctp in my views/layouts/email/text/ directory. What
schould be the problem?
--
Ámon Tamás
http://linkfelho.amon.hu
--~--~-~--~~
I have gone through tons of editors trying to find the best balance of
features and I've found PSPad to be a great little text editor that
supports PHP (as well as many other languages), Direct FTP transfer,
and a bit of project managment. It's all I use now!
--~--~-~--~~---
Thanx Eric n Cheeze for your time :)
On 2/17/07, Cheeze <[EMAIL PROTECTED]> wrote:
>
>
> Very nice effort. I can see it is feature packed with a good effort at
> incorporating JavaScript effects. But maybe it is the JavaScript that
> is slowing the site down?
Nope, It's not because the JavaScri
Very nice effort. I can see it is feature packed with a good effort at
incorporating JavaScript effects. But maybe it is the JavaScript that
is slowing the site down?
On Feb 15, 4:49 pm, "Eric C Blount" <[EMAIL PROTECTED]> wrote:
> Slow, so very slow (see traceroute at the bottom). Makes it hard
Filter ítems by category:
$this->Items->findAll(array('Item.category_id'=>$category_id));
1.2 pagination is easy. What I do is something like ($paginate is a member
variable in the controller that the paginator component uses to fetch the
parameters, the pagination helper will be auto-added for
Emacs is evil. And it's nowhere close to lightweight or clean. Let the
flaming begin! :-)
Leonardo Varuzza wrote:
> Emacs, the one true editor ;-)
>
> On Feb 13, 2:08 pm, Jason Huebel <[EMAIL PROTECTED]> wrote:
>> For those poor souls who can't use TextMate because you're on Windows,
>> you mig
I am planning to build a small portfolio script in cakephp, but how
could i filter categories on items.. so i would have a table
categories
-id
-category_name
items
-id
-category_id
-intro
-readmore
How would i filter the items based on category when a menu item has
been clicked ? And also how
Have a good weekend ^_^.
On Feb 16, 8:11 am, "Mike" <[EMAIL PROTECTED]> wrote:
> Thanks to all who replied. I have a long weekend coming up and will
> most likely try these suggestions out then.
>
> Thanks.
>
> On Feb 15, 9:39 pm, "Dat Chu" <[EMAIL PROTECTED]> wrote:
>
> > In .htaccess, you can
Thanks.
I read about i18n and PEAR::Translation2 packages, and I even found a
cake component to use it. But it's not what I need.
This all is about static content like menus, titles etc. For static
content I can use built-in flash mechanism and this is not a problem.
The problem is for dynamic con
Hey not sure if you got my previous message but I just want to say
thanks for the help. It doesn't look like it posted my reply on the
post.
On Feb 15, 6:40 pm, Langdon Stevenson <[EMAIL PROTECTED]>
wrote:
> Hi gcalderon
>
> Why not just query ScorecardDates into a variable:
>
> $scorecard = $t
Oh awesome I wasn't aware of debug()
Thanks that helps me too :)
On Feb 15, 2:13 am, "Riky Kurniawan" <[EMAIL PROTECTED]> wrote:
> Try using
> echo '';
> print_r($this->Network);
> echo '';
>
> above the code can simply using debug:
>
> debug($this->Network);
>
> --
> ht
Darn, I wrote ClassName (with capital C), instead of className. How
very stupid...
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups "Cake
PHP" group.
To post to this group, send email to cake-php@googlegroups.com
To
http://bin.cakephp.org/saved/2584
On Feb 16, 9:18 am, "NOSLOW" <[EMAIL PROTECTED]> wrote:
> Langdon,
>
> Any chance that you can post some code snippets of the key pieces of
> the view and controller code? I plan on enhancing the UI of my web app
> with AJAX, but first I'm building the app withou
Emacs, the one true editor ;-)
On Feb 13, 2:08 pm, Jason Huebel <[EMAIL PROTECTED]> wrote:
> For those poor souls who can't use TextMate because you're on Windows,
> you might want to take a look at InType (http://intype.info/). It's
> still in alpha (and will eventually be commercial software),
Hi,
I have two tables, franchises and owners.
The owners table has a foreign key to franchises called franchise_id.
I've defined a $hasMany relationship between franchise and owners (ie.
1 franchise can have many owners).
I've defined a $belongsTo relationship between owner and franchise
(ie.
Langdon,
Any chance that you can post some code snippets of the key pieces of
the view and controller code? I plan on enhancing the UI of my web app
with AJAX, but first I'm building the app without it. However, I may
sneak in a preview of what that might look like as a teaser for my
team members
I have some views for a model with a mix of fields, two of these
fields are select boxes and other two of these fields are multiple
select boxes. The multiple ones are rendered with the selectTag html
helper method ($html->selectTag('Area/Area', $areas, $selectedAreas,
array('multiple' => 'multipl
I'm using Eclipse + PDT for editing, SQLyog Community Edition for
MySQL stuff (it's a great program, and it's free!), and Firefox 2 with
webdeveloper and firebug extensions. I have some Cake snippets for
Eclipse that you can download from my blog.
(http://www.ntatd.org/mark/?p=24)
I'm also playi
I'm using Eclipse + PDT for editing, SQLyog Community Edition for
MySQL stuff (it's a great program, and it's free!), and Firefox 2 with
webdeveloper and firebug extensions. I have some Cake snippets for
Eclipse that you can download http://www.ntatd.org/mark/?
p=24">here.
I'm also playing aroun
Thanks to all who replied. I have a long weekend coming up and will
most likely try these suggestions out then.
Thanks.
On Feb 15, 9:39 pm, "Dat Chu" <[EMAIL PROTECTED]> wrote:
> In .htaccess, you can specify that if the URL is a correct file/
> directory path, then it will serve the page. Othe
Hi
I'm fairly new to CakePHP, and am struggling with insertions across
two tables linked by a foreign key. Briefly this is the situation:
Two tables, members and articles, linked in a 1:n relation by the
foreign key member_id. One member can have 0, 1 or more articles.
members
memb
As I said, I use Aptana. Full-featured, and free. I'm cheap, I is...
Regards!
-Toby Parent
Felix St. Bernard wrote:
> How come more of you don't use zend?
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups "Cake
PHP
Hi,
I've created a observable model, which saves the userid when creating
and updating a model. So my Model might have fields created_by and
modified_by and in that case, my observable model, via a component (as
described on the Bakery) add this information to the data to be saved.
I would also
As Eric describes, Elements are the "best practice" method for this.
When I first started baking however, it took me a while to realise
that a layout isn't really any different to a view - it can access
variables passed to the views form the controller via the set()
method, and it can also call r
On Feb 16, 12:41 pm, "lemon" <[EMAIL PROTECTED]> wrote:
> Hi
>
>Well I'm trying to connect Cake with MySQL via PEAR driver
Why? There is a perfectly robust native mysql driver.
Cheers,
AD
--~--~-~--~~~---~--~~
You received this message because you are sub
Check out Elements. They're designed for content that's repeated on every
page, and can be rendered in the layout.
HTH,
Eric
On 2/15/07, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote:
>
>
> I have the layout file divided in three section.
>
> The central is for content_for_layout();
> right and le
Hi
Well I'm trying to connect Cake with MySQL via PEAR driver but.. i
don't know from where i should get this driver. In manual is only
mentioned about this but without any details :( Can anyone help me
with that? :)
TIA
Regards
lemon
--~--~-~--~~~---~--~~
Y
While I'm happy to help where I can, please avoid spamming the group with
redundant questions. I just noticed your identical question in another post
has already been answered. It seems you just reposted during the same day
with the same exact question. This just wastes time.
Thanks,
Eric
--~--~-
The easy way would be to just use Text fields. I don't think MySQL allocates
a ton of space for them. Given that space doesn't seem to be a problem for
most websites these days (hard disks are cheap!!), time is usually the
limiting factor. So if it's easy and wastes a little space, you should
proba
Either hasOne or hasMany, yes. I believe that associations have to go both
ways in order to work correctly. For instance, if you use recursive = 1 and
query taxes, it should give you the relevant locations, but querying
locations will not give you taxes unless you set up the reverse association.
H
Hmm...I would think you could just route /admin/ to the controller/action
that you want. Check out /app/config/routes.php. Most people would likely
route it to a page in the pages controller (like / is routed to
/pages/home in the default Cake installation) displaying a list of possible
actions for
Okay, so someone correct me if I'm wrong, but you don't have to have a
model, you could just write a controller called "files" or something. Just
don't set the "uses" property.
Create the views you want, and the controller methods to go with them.
Methods would be pretty standard, like index, view
Hi Fedya
I have written basic file handling features for a couple of projects
now. It's not difficult, and Cake doesn't really matter here. It's
just PHP. Cake provides the vehicle for delivering the views. You put
all of your PHP file manipulating code in your controller.
It is that simp
at the moment i am testing the ftp/svn deployment task by Felix
Geisendörfer
(http://www.thinkingphp.org/2006/11/22/release-early-release-often-a-svnftp-deployment-task/)
and i am testing the editors intype (alpha version with project manager)
and/or komodo edit.
Alex schrieb:
> ah i've go
Man, I wrote a huge reply before re-reading your last post and actually
understanding what you were asking.
Okay, I think what you're looking for is requestAction(). Search the group
for it or look through the docs and I think you'll quickly find your answer.
HTH,
Eric
On 2/15/07, Norman <[EMAI
Since Sanitize::sql is deprecated in 1.2 and we need to use escape
instead, I had to modify many places in my project and ran into this
problem:
* Sanitize::escape automatically put the string between 2 single
quotes:
example: e(pr(Sanitize::escape("this_is_a_safe_string")));
and you will get thi
Ok I've found out:
in the Post-model I had to declare Comment in the $uses-array.
to save toe COmment model, I'd to use $this->Comment->save instead of
$this->Post->Comment->save()
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the
Seb,
I'm not trying to make anything complicated. I won't need file
permissions or anything, I will however want to authenticate to view
the files. What I'm trying to understand is how I would implement such
a thing in CakePHP. For example, I could use opendir() and list all
the files. All the tu
+1 for Textmate + Interarchy
On Feb 16, 8:41 am, "D.Pape" <[EMAIL PROTECTED]> wrote:
> zend is very great, of course. but it's too expensive for me!!
> i'm web-developing in my free time and non-professional!!
>
> Felix St. Bernard schrieb:
>
> > How come more of you don't use zend? I find it pre
I'm a little confused here
I have 2 tables "Taxes" and "Locations"
Table Tax has a foreign key called 'locations_id' and in it's model I've
defined a belongsTo association "var $belongsTo = 'Location';" I'm using
scaffolding for the time being to get my relations in order. However
this as
ah i've got to say that "ftp-uploader" is a very common name for an
uploader :-) so I meant the program on www.ftp-uploader.de :-)
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups "Cake
PHP" group.
To post to this g
PHPEclipse as Environment and (top secret :-)) ftp-uploader as upload
program - very cool piece of software!
before i used Zend Studio and that before i used Proton ;-)
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Grou
On 2/16/07, anandrv <[EMAIL PROTECTED]> wrote:
> I need the file upload function using cakephp.in my database i want to
> save file "tempname.jpg".but this uploaded file i want to save
> particular location.when i am display the image i mention the /
> uploadedimage/ like that i want to give pleas
72 matches
Mail list logo