Re: How much to charge?

2011-02-17 Thread hydra12
@Tarique - Very nice :-) @keymaster - Thanks for the hourly pricing. That helps a lot! hydra12 On Feb 17, 12:39 am, keymaster wrote: > Just off the top of my head, for freelance work: > > Western countries - $50 - $125/hr. > India/Russia/Africa - $8 - $25/hr. > > Where you fit

How much to charge?

2011-02-16 Thread hydra12
I've been offered a one-time job to develop a database driven form for someone's website. I don't have any idea what to charge. I've done some of this before, but always when I was on salary. Anybody want to give me some advice? Thanks in advance! hydra12 -- Our

Plugin model with no table

2009-04-28 Thread hydra12
found. Thanks! hydra12 --~--~-~--~~~---~--~~ 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+uns

Re: How do I represent a habtm where the join table has extra information?

2008-11-04 Thread hydra12
Take a look here: http://book.cakephp.org/view/83/hasAndBelongsToMany-HABTM. Look especially at the 'with' key when you define your HABTM relationship. It says in the docs: with: Defines the name of the model for the join table. By default CakePHP will auto-create a model for you. Using the

Re: Authentificate against LDAP?

2008-11-04 Thread hydra12
, I use adLdap (http://adldap.sourceforge.net/). I drop it in the vendors folder, then create an instance of adldap in my users controller and do all my authentication there. I've had good luck with it so far, but it's not 'cakey', so it might not be what you are looking for. I hope that help

Re: how to use our own class in cakephp?

2008-10-23 Thread hydra12
Are you talking about a non-cake class that you want to use? If so, drop it in vendors and use it that way. On Oct 23, 5:36 am, xelios <[EMAIL PROTECTED]> wrote: > how to use our own class in cakephp? --~--~-~--~~~---~--~~ You received this message because you are

Re: how to edit multple rows in one view

2008-10-20 Thread hydra12
le related models you can use > saveAll(). > > On Oct 20, 7:04 pm, "soldier.coder" <[EMAIL PROTECTED]> > wrote: > > > On Oct 20, 3:49 pm, hydra12 <[EMAIL PROTECTED]> wrote: > > > > I asked about ajax because that actually makes things easier

Re: how to edit multple rows in one view

2008-10-20 Thread hydra12
e over > the array and change $this->data and then call >    $this->Grade->save($this->data); > ?? > > On Oct 20, 1:47 pm, hydra12 <[EMAIL PROTECTED]> wrote: > > > This can get complicated VERY fast.  First, do you want the changes to > > be

Re: how to edit multple rows in one view

2008-10-20 Thread hydra12
This can get complicated VERY fast. First, do you want the changes to be made immediately, or does the teacher have to click a submit/save button to save changes? Second, is ajax an option? hydra12 On Oct 20, 10:27 am, "soldier.coder" <[EMAIL PROTECTED]> wrote: > Hello cod

Re: Foreach loop with data from other model

2008-10-17 Thread hydra12
If you have the relationship setup correctly, you don't have to use the ratings model. You can do this in your controller: $this->set('ratings', $this->Picture->Rating->avgRating($id)); That's all off the top of my head, but it should work. HTH, hydra12 O

Re: Adding fields to the URL

2008-10-15 Thread hydra12
e. it gets assigned to null if they don't put one in the url), render a view page. If they do match, show an edit page (you could do this through switching, or you could redirect to an edit page). I hope that helps! hydra12 On Oct 15, 5:23 am, Cody Sortore <[EMAIL PROTECTED]> wr

Re: 2 apps, one cms and the other is the normal site -> site needs to get to the cms's webroot

2008-10-14 Thread hydra12
I don't have access to my dev machine right now to check, but I think you can do this in the bootstrap file. I'll see if I can find more tomorrow. On Oct 14, 6:14 pm, Shackadoodl <[EMAIL PROTECTED]> wrote: > Hi guys, > > Urgent question: > > I have a project with an extremely tight deadline, so

Re: CakePHP Install Problem

2008-10-09 Thread hydra12
It really sounds like a permissions problem. I know you checked it already, but does the user that apache runs as have permissions to view the page? On Oct 9, 11:08 am, darwin2kx <[EMAIL PROTECTED]> wrote: > No file permission problems. > AllowOverride is set to All. --~--~-~--~~

Re: Share the webroot folder ( multiple app folders )

2008-10-07 Thread hydra12
Have you looked at the advanced install options in the documentation? http://book.cakephp.org/view/35/Advanced-Installation You can define where the webroot folder, the app folder, and the cake folder are. On Oct 7, 2:15 pm, Shackadoodl <[EMAIL PROTECTED]> wrote: > Hi guys > > I've seen the wil

Re: Trouble with the HtmlHelper and $scripts_for_layout

2008-10-06 Thread hydra12
Oops! You're right. Sorry. I can't get it to work either. On Oct 6, 2:00 pm, "Marc Campeau" <[EMAIL PROTECTED]> wrote: > Thanks for your input. > > I beg to differ though, the manual says: > > http://manual.cakephp.org/view/96/Layouts > When using $html->css() or $javascript->link() in view fi

Re: Trouble with the HtmlHelper and $scripts_for_layout

2008-10-06 Thread hydra12
If you look at the api, you'll see that $html->css creates a link to a pre-existing style sheet in webroot/css. $scripts_for_layout is for javascript using the javascript helper. On Oct 6, 12:02 pm, Marc Campeau <[EMAIL PROTECTED]> wrote: > Yeah sorry, I thought I should have put that in the mes

Re: How can I change the path of webroot/js and webroot/css?

2008-09-18 Thread hydra12
This is configured in /cake/cake/config/paths.php. I don't know if there is a way to configure this on a per app basis or not. You'll have to be careful, though. It's configured in 2 different places - once for the absolute path, and once for the web path. On Sep 18, 9:27 am, MarcS <[EMAIL PRO

Re: Populating a selectTag using jQuery AJAX

2008-09-17 Thread hydra12
e has to be a view called get_events that returns the xml data. I hope that helps. hydra12 On Sep 17, 8:57 pm, teknoid <[EMAIL PROTECTED]> wrote: > Perhaps  I didn't look at your code very closely, but after you've > made the xml string ($xml) what happens? Shouldn't your

Re: JSON troubles

2008-09-09 Thread hydra12
I've had this problem developing on my macbook using mamp. I finally stopped using mamp and started using the builtin apache server, and I haven't had any more problems. On Sep 9, 11:44 am, Kyle Decot <[EMAIL PROTECTED]> wrote: > Okay that is getting more and more strange as I keep trying to get

Re: JQuery + JSON

2008-09-08 Thread hydra12
tId+''; to this: var postUrl = 'posts/view/'+postId+''; Now, if you call your page directly, say like this: http://localhost/myapp/posts/view/post, you should get a blank page, but the json should show up in firebug. If you call it via ajax, everything should work.

Re: scaffold

2008-09-02 Thread hydra12
The easiest way to do this is to bake your application and have bake create the default views for you. Then you can go in and edit those views any way you want. Otherwise, scaffolding is pretty much non- editable. I think you can edit the scaffold templates, but I don't know how to do that. On

Re: JSON troubles

2008-08-25 Thread hydra12
I'm still curious - in your first post, you use a param in the url called id. It equals 6. You said it worked. In your jquery code, you use state_id=6 instead of id=6. Could that be the problem, or is it a typo? --~--~-~--~~~---~--~~ You received this message be

Re: JSON troubles

2008-08-25 Thread hydra12
OK, I missed where the line wrapped, too. A couple of things: 1. In the working link, you have a parameter called id. In the non- working one, you have state_id. 2. Why are you calling the html helper in your javascript? Are you using cake 1.1? 1.2 doesn't have $html->url. 3. If you do mean

Re: JSON troubles

2008-08-25 Thread hydra12
s in your jquery code. http://localhost/pages/list.json?id=6 works, but you get a 404 when you call http://localhost/pages/list. I'd try changing the url in my jquery code to match the url that works when I call it directly. I hope that helps! hydra12 --~--~-~--~~~---

Re: Slow...

2008-04-24 Thread hydra12
Are you using firebug in firefox? I've noticed that sites with lots of javascript run VERY slow under firebug. Try testing in another browser or turning firebug off and see if that helps. On Apr 24, 9:32 am, Pierre MARCOURT <[EMAIL PROTECTED]> wrote: > Thanks for the advice Chris, > > I am goin

Re: CakePHP with ExtJS

2008-04-18 Thread hydra12
s, for instance). I've written a few tutorials on my blog: www.ntatd.org/mark. I don't use any helpers. I hope that helps some! hydra12 On Apr 18, 6:59 am, "[EMAIL PROTECTED]" <[EMAIL PROTECTED]> wrote: > ExtJS and Cake do indeed work quite nicely together. Having used

Re: Array in PHP to JSON

2008-04-03 Thread hydra12
put in your layout to make your json available to your views. And on slide 34, it shows how to access that data from jquery. I hope that helps. hydra12 On Apr 3, 8:42 am, Tom <[EMAIL PROTECTED]> wrote: > Thanx, but i would like to use it with Jquery. > I have a filled array in php, and

Re: How multiple cakephp Apps??

2008-01-26 Thread hydra12
Put your cake folder in your root web folder (ex. http://localhost/). Now put your apps in the cake folder (same folder that the default app is). You can now call them with http://localhost/app1, http://localhost/app2, etc. hydra12 On Jan 26, 1:13 pm, Asinox <[EMAIL PROTECTED]> wrote: &g

Re: CakePhp and Extjs tree

2008-01-24 Thread hydra12
#x27;ll post a tutorial soon. > > Thanks > > On 23 Gen, 19:39, hydra12 <[EMAIL PROTECTED]> wrote: > > > I haven't tried this yet. You might look here for some basic > > information: > > http://extjs.com/learn/Tutorial:Ext20_Tree_TreeLoader_PHP_MySQL > >

Re: An Idea For Ease Of Developing Views

2008-01-24 Thread hydra12
hings can go wrong. PHP works great, cake devs already know it, and it can be very nice looking if you design your site properly. hydra12 On Jan 24, 7:52 am, "Chris Hartjes" <[EMAIL PROTECTED]> wrote: > On Jan 24, 2008 5:41 AM, Gary Taylor <[EMAIL PROTECTED]> wrote: >

Re: application falls

2008-01-23 Thread hydra12
Just off the top of my head (I'm not a bsd guy), make sure that whatever user apache runs under has permissions on the directory where your app is. On Jan 22, 5:01 am, galem <[EMAIL PROTECTED]> wrote: > First of all, sorry for my english! > Has written the appendix on cakePHP. Have established on

Re: CakePhp and Extjs tree

2008-01-23 Thread hydra12
tree tutorial up sometime. You can find my other stuff here: http://www.ntatd.org/mark. Maybe some of it will help, since the datagrids do cover outputting data in json format. hydra12 On Jan 22, 8:14 am, Paolo <[EMAIL PROTECTED]> wrote: > Hi all! > Hasanyone tried to integrate cake w

Re: Redirecting to another url in cake

2008-01-21 Thread hydra12
lled pages. In reference to your routes question, no, you shouldn't have to set a route for every link you make. If you follow the /controller/action model, things should just work. hydra12 On Jan 21, 2:45 pm, "Novice Programmer" <[EMAIL PROTECTED]> wrote: > Hello hydra, &

Re: Redirecting to another url in cake

2008-01-21 Thread hydra12
I'm still unsure what you are wanting. Are all of these new pages going to be cake pages, or are they going to be static pages? If they are cake pages, then your two points are correct. Sometimes it is easier to make a new layout. On Jan 19, 1:37 am, "Novice Programmer" <[EMAIL PROTECTED]> wro

Re: AJAX Request - DHTML Suite

2008-01-21 Thread hydra12
nerals/view/"+viewId}</a> ); > var newWindowWidget = new DHTMLSuite.windowWidget(newWindowModel); > newWindowWidget.init();} > > > > I now pass an 'id' to the script as well. > > Thank you. > > On Jan 21, 10:58 am, hydra12 <[EMAIL PROTECTED]>

Re: How to test that adatabase table exists ?

2008-01-21 Thread hydra12
Here's an idea: assuming you have a table users with data in it and a table schools that is empty. In the users controller: function test() { $data = "select * from users limit 0,1"; //custom query, limit to make things run faster $temp = $this->User->execute($data); if($temp)

Re: cakephp 1.2 :: Database prefix and tips about sanitize

2008-01-21 Thread hydra12
I could be wrong, but I don't think you have to do anything to use the database prefix. That's configured in database.php. On Jan 19, 1:21 pm, Josoroma <[EMAIL PROTECTED]> wrote: > I have an afterSave function inside a model, my two questions are: > > #1 How do i use the database prefix? > > #2

Re: Confused using forms (i think!)

2008-01-21 Thread hydra12
I haven't ever tried this, but I think that $this->User->Usertype- >find() needs to be $this->User->Usertype->findAll() if you want to get a list of all the different user types. Best way to do this - use bake to make your views, then see how it handles this. On Jan 19, 3:57 pm, judouk <[EMAIL P

Re: Simple Bog tutorial Sorting question

2008-01-21 Thread hydra12
mmunity is really great about helping point you in the right direction. hydra12 On Jan 20, 10:35 am, justradar <[EMAIL PROTECTED]> wrote: > ... but i guess i was likely searching for the WRONG vocabulary ... --~--~-~--~~~---~--~~ You received this message because

Re: Setting $useDbConfig at runtime with cake 1.2 beta

2008-01-21 Thread hydra12
Look at the values in $this->params (it's an array with all the parameters passed to the controller). If selenium is always the last parameter, you could check that, or you could just do: if(in_array('selenium', $this->params) { $this->useDbConfig='selenium

Re: AJAX Request - DHTML Suite

2008-01-21 Thread hydra12
php echo $_SERVER['HTTP_HOST']; ?>'; In my javascript code, I put this for my ajax url: contentUrl: 'http://'+host+'/myapp/vendor/view/107' I hope that helps some. hydra12 On Jan 21, 9:38 am, ryoungsma <[EMAIL PROTECTED]> wrote: > Here is the

Re: AJAX Request - DHTML Suite

2008-01-21 Thread hydra12
Can you show the relevant js code? Specifically, how are you inputting the url? On Jan 21, 7:29 am, ryoungsma <[EMAIL PROTECTED]> wrote: > I am looking at using the DHTML Suite (dhtmlgoodies.com) with my > application. I am using their Window Widget to retrieve some > information via AJAX. The

Re: Inserting multiple records into the same model from one form

2008-01-17 Thread hydra12
I wrote a tutorial on this awhile back. You can find it here: http://www.ntatd.org/mark/?p=28. It's a little bit strange because of the date stuff I was also having to deal with (it's just working code from a project I had), but maybe it will help a little. Let me know if I can help

Re: Installation/htaccess problems

2008-01-17 Thread hydra12
erent directory structure, there are ways to make it work, but I don't thing you need to change the .htaccess file. hydra12 On Jan 15, 3:37 pm, Reuben Avery <[EMAIL PROTECTED]> wrote: > Hi all, > > Having some difficulty getting off the ground here with the cake blog > tutorial

Re: Array Structure using alias Fieldnames in findAll() Method

2008-01-17 Thread hydra12
here: http://www.thinkingphp.org/2007/02/24/cake-12s-set-class-eats-arrays-for-breakfast/ I have an example that uses this to create a json string here: http://www.ntatd.org/mark/?p=29. I hope that helps some. I know it's not what you actually asked for, but maybe it will help in the mean time

Re: Redirect to a wrong url when i login successfully

2008-01-17 Thread hydra12
It would help if you could post your code. What address did you tell your page to redirect to? If you just want to redirect to http://www.test.com/app/, you could try redirecting to '/'. I hope that helps. hydra12 On Jan 16, 8:03 am, KnightE <[EMAIL PROTECTED]> wrote: > Hi,

Re: cakephp directory structure

2008-01-17 Thread hydra12
. If you want to have several different apps, you can create a folder inside cakephp for each app (essentially, just copy the app folder and rename it). If you put things in /app/addressbook/, I don't think it would work. hydra12 On Jan 17, 3:27 am, aamir <[EMAIL PROTECTED]> wrote: >

Re: javascript declarations

2008-01-15 Thread hydra12
Try this instead: link('prototype.js')); echo ($javascript->link('scriptaculous.js')); } ?> This is the normal way to write an if statement in php. I don't know if the other way will work or not. hydra12 On Jan 15, 7:59 pm, "b logica" <[EMAIL

Re: How combine CakePHP + ExtJS?

2008-01-15 Thread hydra12
ot;", > "realname":""}, {"username":"Invité", "title":"", "realname":""}]} > > display just after the grid . > > On Jan 11, 11:15 pm, hydra12 <[EMAIL PROTECTED]> wrote: > > > OK, the forms tutor

Re: How combine CakePHP + ExtJS?

2008-01-11 Thread hydra12
OK, the forms tutorial is up now. You can find it here: http://www.ntatd.org/mark/?p=31. Have a great weekend! On Jan 11, 8:38 am, hydra12 <[EMAIL PROTECTED]> wrote: > That's what it's supposed to do. getAllUsers just returns a json > string with data from the database.

Re: How combine CakePHP + ExtJS?

2008-01-11 Thread hydra12
from the store and puts it in the grid. The fact that you are getting the json string when you call getAllUsers directly means you're on the right track. Let me know if I can help. BTW, I'm about 1/2 way done on a forms tutorial . . . hydra12 On Jan 11, 8:13 am, inma <[EMAIL PROTECT

Re: How combine CakePHP + ExtJS?

2008-01-10 Thread hydra12
OK, I did some searching and found this thread: http://groups.google.com/group/cake-php/browse_thread/thread/32d4c152746ddb38/48bde29ad0776d1f?lnk=gst&q=extjs#48bde29ad0776d1f --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google

Re: Looking for an example with Extjs lib

2008-01-10 Thread hydra12
I just posted a newer tutorial that works with ext-2.0 and cake 1.2 beta here: http://www.ntatd.org/mark/?p=30 On Nov 26 2007, 10:12 am, hydra12 <[EMAIL PROTECTED]> wrote: > OK, I now have an example to share. It's fairly long, so I won't post > it here, but you can fin

Re: How combine CakePHP + ExtJS?

2008-01-10 Thread hydra12
oller, you have to take the post data ($_POST) and rewrite it to fit cake's array preferences, then you can save to the database. hydra12 On Jan 10, 5:13 am, foxmask <[EMAIL PROTECTED]> wrote: > i tried to repeat the step of your example with ext 1.1.1 here is my > ajax.ctp > &

Re: How combine CakePHP + ExtJS?

2008-01-09 Thread hydra12
I'm working on a new version of my tutorial that works with 2.0. I'll try to get it done soon, depending on my work schedule. hydra12 http://www.ntatd.org/mark On Jan 9, 12:23 pm, DjZoNe <[EMAIL PROTECTED]> wrote: > Hi inma, > > I started to write here a little help,

Re: add form in index.ctp

2007-12-27 Thread hydra12
ox. Try this: input('message', array('type'=>'text')); ?> Note - I haven't tested this, just going from memory and a quick check of the api: http://api.cakephp.org/1.2/class_form_helper.html#986b871ad98a20ed1ce3b8ec42d63ce3 Hope that helps! hydra12 On

Re: Integration of Ext js in cakephp

2007-12-26 Thread hydra12
Here's a tutorial on using the datagrid with cake: http://www.ntatd.org/mark/?p=29. Read the comments at the bottom: they point to a discussion that has more information. I'm working on an update for the tutorial, but maybe this will help you until then. hydra12 On Dec 26, 3:03 a

Re: how can we create datagrind in cakephp using ajax helper

2007-12-22 Thread hydra12
I need to see your code. Best would be your javascript code and your controller code. I'm on vacation for Christmas, but I'll see what I can do to help. hydra12 On Dec 22, 4:20 am, "[EMAIL PROTECTED]" <[EMAIL PROTECTED]> wrote: > thanks hydra12, > but still i

Re: how can we create datagrind in cakephp using ajax helper

2007-12-21 Thread hydra12
ds with me helping someone else get it working. I'll be updating my blog with what I learned soon, but until I do (hey, it's Christmas . . .), maybe it will help. I'm also willing to answer questions as I have time. Hope that helps! hydra12 On Dec 21, 5:36 am, "[EMAIL PROTECT

Re: AJAX submit problem - 403 on www server

2007-12-20 Thread hydra12
on't call your ajax pages using localhost in your > > browser. It may work on your dev machine, but won't on your > > production server. > > > I hope that helps (hey, I hope it makes sense to someone besides > > me . . .) > > hydra12 > > Thanks for

Re: AJAX submit problem - 403 on www server

2007-12-19 Thread hydra12
our production server. I hope that helps (hey, I hope it makes sense to someone besides me . . .) hydra12 On Dec 19, 4:38 pm, "d'plus" <[EMAIL PROTECTED]> wrote: > Hello > > I've recently uploaded my project onto my webserver, and right now I > can't submit

Re: Preventing Duplicate Record Insertion on Page Refresh

2007-12-11 Thread hydra12
are doing. If you can give us an idea of what your app does, that would be great. hydra12 On Dec 11, 5:58 am, chowdary <[EMAIL PROTECTED]> wrote: > i am validating the data b4 inserting. but the data type is text.. > the text will not be unique...

Re: Cake and JSON.

2007-12-10 Thread hydra12
:-) I'm glad it worked! On Dec 10, 11:35 am, Marcos Hernández <[EMAIL PROTECTED]> wrote: > Oh, man, you're my savior!!! It works great without touching anything!! > Thanks a lot!! > hydra12 escribió:Try this (works in 1.2): First, put all of your data into a > va

Re: Cake and JSON.

2007-12-10 Thread hydra12
eck the value of items as sent to your view to make sure all the [ and ] are in the right place. hydra12 On Dec 10, 3:41 am, kchopein <[EMAIL PROTECTED]> wrote: > Hi!! > > First of all, thanks for the work! > > I'm trying to use the JSON component with the Dojo Toolkit bu

Re: Problems with save

2007-12-03 Thread hydra12
$t = null; } } I ran into a similar problem once. I was updating a meetings table, and I tried to do things like $this->data['Meeting']['date']. When I tried to save, I got errors. Changing it to $this->data['date&#x

Re: Save multipel posts at once

2007-11-26 Thread hydra12
Here's a post on my blog that talks about saving several records to your database at once: http://www.ntatd.org/mark/?p=28 I hope that helps! hydra12 On Nov 22, 12:57 pm, laeffe <[EMAIL PROTECTED]> wrote: > I'm trying to create a page that will submit multipel posts for an

Re: Looking for an example with Extjs lib

2007-11-26 Thread hydra12
OK, I now have an example to share. It's fairly long, so I won't post it here, but you can find it on my blog. http://www.ntatd.org/mark/?p=29 I hope that helps you some. If you have any questions, let me know. hydra12 On Nov 21, 5:19 pm, aniston <[EMAIL PROTECTED]> wrote

Re: Looking for an example with Extjs lib

2007-11-21 Thread hydra12
I have used extjs with cake a few times. I'll send you some examples later, but I'm on vacation right now and away from my dev. machine. hydra12 On Nov 21, 5:42 am, aniston <[EMAIL PROTECTED]> wrote: > Hello, I found the edit-grid example of extjs very neat and was >

Re: what is wrong , how can I fix it ,thank you very much

2007-11-13 Thread hydra12
If you use debug() at all and have debugging on, you will get this error, too. On Nov 13, 1:42 pm, Gwoo <[EMAIL PROTECTED]> wrote: > your pagination component probably has some whitespace after the > closing tag ?>. --~--~-~--~~~---~--~~ You received this message

Re: Display "Recent posts" lists in layout

2007-10-26 Thread hydra12
I'd use an element with requestAction. You can find a tutorial on how to use them here: http://bakery.cakephp.org/articles/view/creating-reusable-elements-with-requestaction Hope that helps. hydra12 On Oct 26, 2:34 pm, Adam Risser <[EMAIL PROTECTED]> wrote: > I have a section

Re: Using Routes with Admin Routing

2007-10-25 Thread hydra12
OK, finally got it for real: Router::connect('/admin/', array('prefix'=>'admin','controller' => 'tips', 'action' => 'index')); 'prefix'=>'admin' was the key. On Oct 25, 10:26 am, hydra12 <[

Re: Using Routes with Admin Routing

2007-10-25 Thread hydra12
OK, I was wrong. I grabbed the latest (pre-beta), then I grabbed the latest from svn. It still doesn't work. Any thoughts? On Oct 25, 10:06 am, hydra12 <[EMAIL PROTECTED]> wrote: > OK, found the answer > here:http://groups.google.com/group/cake-php/browse_thread/thread/

Re: Using Routes with Admin Routing

2007-10-25 Thread hydra12
OK, found the answer here: http://groups.google.com/group/cake-php/browse_thread/thread/af135e46e9acb355/93459541d5c568d9?lnk=gst&q=router+admin+routing#93459541d5c568d9 I should have spent more than 30 minutes looking for the answer . . . On Oct 25, 9:43 am, hydra12 <[EMAIL PROTECTED]

Re: How can I post a form to different controller/actions if the form has two submit buttons

2007-10-25 Thread hydra12
m different actions based on the contents of your hidden field. --OR-- 1. Use javascript to change the action of your form based on which button is clicked. I hope that helps. hydra12 On Oct 25, 7:51 am, Rahul <[EMAIL PROTECTED]> wrote: > Hi > I am working on a Animal Inventory

Using Routes with Admin Routing

2007-10-25 Thread hydra12
'tips', 'action' => 'admin_index')); admin_index is considered private, so I can't call this function. Any ideas? Thanks! hydra12 --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Gr

Re: 400 Bad Request on Windows

2007-10-23 Thread hydra12
my cake apps in and set my document root to c:\web\projects. 3. I set my eclipse workspace to c:\web\projects. Everything works. I hope that helps a little. hydra12 On Oct 23, 8:06 pm, JS Bournival <[EMAIL PROTECTED]> wrote: > I am unable to get Cake to work locally. I always g

Re: EXTJS forms, Cake, and AJAX

2007-09-10 Thread hydra12
; $this->data['User']['first_name] = $this->params['form'] > > ['first_name']; > > ... > > > On Sep 10, 8:15 pm, hydra12 <[EMAIL PROTECTED]> wrote: > > > > I'm trying to use the froms from EXTJS w

EXTJS forms, Cake, and AJAX

2007-09-10 Thread hydra12
( [User]=>Array ( [last_name]=>Buckner [first_name]=>Mark ) ) This seems to be the format Cake expects. Thanks! hydra12 --~--~-~--~~~---~--~~ You received this message

Re: Path Clarification Please!?!?

2007-09-09 Thread hydra12
n the development server and paste it into public_html on your shared server. I hope that helps. Somebody correct me if I'm wrong. hydra12 On Sep 9, 1:46 pm, DGPhoebus <[EMAIL PROTECTED]> wrote: > Hello everyone. I am new to CakePHP and I was wondering if the PATHS > have to be ch

Re: Load Javascript on the fly

2007-05-25 Thread hydra12
t the top, but the scripts never ran in IE. They worked in FireFox, though. Go figure . . . I hope that helps. hydra12 On May 25, 2:27 pm, "Pablo Viojo" <[EMAIL PROTECTED]> wrote: > I use to load javascript files on the fly using a **synchronous** connection > (using XMLH

Re: halfcooked cake?

2007-05-18 Thread hydra12
tance, if I had a controller called UsersController, I'd put http://coleg.homelinux.org/vColeg/users/index, or http://coleg.homelinux.org/vColeg/users/add. Let me know what you find out. hydra12 On May 18, 4:19 am, Changoso <[EMAIL PROTECTED]> wrote: > the thing is I do have the controller

Re: halfcooked cake?

2007-05-17 Thread hydra12
#x27;t have any controllers defined, or your project is not the document root of your web server. You might need to give the project name first: http://www.mysite.com/project/controller/action. This should only be necessary if you aren't using a standard cake install. I hope that helps. hydra12

Re: Use php in js files?

2007-05-14 Thread hydra12
I ended up assigning the variable to a js variable in my view. That worked great. Thanks! On May 12, 3:21 pm, Vladimir <[EMAIL PROTECTED]> wrote: > assigning js var is better because .js file can be cached --~--~-~--~~~---~--~~ You received this message becaus

Use php in js files?

2007-05-10 Thread hydra12
I'm using jquery and ext.js to build a user interface. When a page loads, I have a ext.js menu loading at the top with new, edit and delete options. I want to click edit on the menu and have my page reload in editable form via ajax. Here's my problem: the new button works fine, but I can't get

Re: Get List of Plugins

2007-04-27 Thread hydra12
Thanks, gwoo! On Apr 27, 5:20 am, gwoo <[EMAIL PROTECTED]> wrote: > uses('folder'); > $Plugins = new Folder(APP.'plugins'); > pr($Plugins->ls()); > > Something like this should work. > good luck. --~--~-~--~~~---~--~~ You received this message because you are sub

Get List of Plugins

2007-04-26 Thread hydra12
Does anybody know a way to get a list of which plugins are in the plugins directory? I'm playing around with the idea for an application that would use lots of plugins, and I want to dynamically add them to a menu at runtime. Thanks! hy

Re: is there another Star Rating code or helper to cake ?

2007-04-23 Thread hydra12
Here's one: http://rossoft.wordpress.com/2006/09/07/ajax-star-rating-helper/ On Apr 23, 8:16 am, "Dr. Tarique Sani" <[EMAIL PROTECTED]> wrote: > Cheesecake-Photoblog SVN has a working example which uses JQuery and > works well with latest 1.1.x cake version - See demo > athttp://cheesecake-photo

Re: How to manage URLs that doesn't require access to Database

2007-04-23 Thread hydra12
You can put static pages in the webroot folder. For instance, you could put a folder in webroot called cpanel. Put an index.html page in cpanel, and access it by going to www.mysite.com/cpanel. That worked on my system, so it should work . . . I hope that helps. hydra12 On Apr 23, 5:56 am, 浪

Re: scaffold in admin

2007-04-19 Thread hydra12
your basic controllers and views. This builds the scaffolding for you, and you can then modify the code. I hope that helps. hydra12 On Apr 19, 12:07 pm, LLoBu <[EMAIL PROTECTED]> wrote: > I´m using CAKE_ADMIN to protect admin scaffold. > > I don´t know how to use i

Re: whats the relationship between CakePHP 1.2 test suite N SimpleTest

2007-04-16 Thread hydra12
est suite makes everything work in a cakey way (loading models, controllers, etc). I hope that helps. Somebody please correct me if I'm wrong. hydra12 On Apr 16, 5:37 am, "[EMAIL PROTECTED]" <[EMAIL PROTECTED]> wrote: > whats the relationship between CakePHP 1.2 test su

Re: Proposal for "killer app"

2007-03-29 Thread hydra12
I think that's the best idea I've read in this entire thread! On Mar 29, 9:00 am, "Chris Hartjes" <[EMAIL PROTECTED]> wrote: > On 3/29/07, digital spaghetti <[EMAIL PROTECTED]> wrote: > > > > > What I am now proposing, through the thoughts that you have all > > expressed here, is to build standar

Re: Testing Plugins

2007-03-27 Thread hydra12
a lot of experience with this yet. hydra12 On Mar 27, 12:38 pm, "Daniel Hofstetter" <[EMAIL PROTECTED]> wrote: > Well, testing of plugins is not (yet) implemented. What do you think > would be the best approach to test plugins? > >

Testing Plugins

2007-03-27 Thread hydra12
. Anybody have any suggestions? Thanks! hydra12 --~--~-~--~~~---~--~~ 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 unsubscribe from this gr

Re: newbie question, populate drop down box from other parent table

2007-03-20 Thread hydra12
In your category model, put this: var $displayField = 'name'; Name is the name of the db field you want to show instead of the id. Hope that helps! hydra12 On Mar 19, 5:48 pm, "sixlaneve" <[EMAIL PROTECTED]> wrote: > Hi... sorry... I am a bit thick and I have a

Re: help with windows install needed - php\php.exe instead of cake ROOT[Scanned]

2007-03-09 Thread hydra12
If you find out what's wrong, please post it here so I can see what happened. I'll be away from my computer for about a week - it's spring break in Texas, and I'm taking my youth group on a trip - but I'll check it when I get a chance. hydra12 (Mark) On Mar 9,

Re: help with windows install needed - php\php.exe instead of cake ROOT

2007-03-08 Thread hydra12
t often if things are busy at work). Try to be patient. I can understand being frustrated when you ask for help and don't get it as fast as you'd like (I've been there, too), but getting snippy doesn't help anything :-) hydra12 On

Re: Installation Problem -- Need Help!!!

2007-03-07 Thread hydra12
d put your code up someplace so we could look at it. On Mar 7, 12:55 pm, "Somewhere" <[EMAIL PROTECTED]> wrote: > It's the default structure that comes directly out of the cake box. I > never changed it. > Is it what you need? > Thanks a lot! > > On Mar 7, 1:40 pm

Re: Installation Problem -- Need Help!!!

2007-03-07 Thread hydra12
here" <[EMAIL PROTECTED]> wrote: > > > > Thank you, guys, for your help! > > > I just changed it to the dev installation and it works as it is. > > > But when I opened the default page in a browser, it said: > > > > "Your database config

Re: Installation Problem -- Need Help!!!

2007-03-06 Thread hydra12
ument root (htdocs for most people, it seems). I only had to change 1 line in my app's webroot/index.php file to make it work. I hope it helps. hydra12 On Mar 6, 3:53 pm, "Christopher E. Franklin, Sr." <[EMAIL PROTECTED]> wrote: > I uploaded my bootstrap and core.php to the

Re: Admin Routing Redirect problem

2007-03-06 Thread hydra12
on a page where you don't give the controller/action (in routes I have / set to tickets/add/), Query_String comes back blank, so I set it to '/', which make the redirect work without errors. BTW, I did the str_replace above because $_SERVER['QUERY_STRING'] prefaces ev

  1   2   >