Can I do the following with cakephp?

2010-03-31 Thread Bankai
- Export results of a database table to excel
- Have an autosave feature like google docs into my web app
- Whats the best javascript framework (jquery, mootools, prototype,
etc) to use along with cakephp

And now the biggie!
- Lets say I live in a third world country (which I do), and the
lights go out every once in a while. Can I develop a program with
cakephp, where each workstation thats connected to the server (where
my web app is) save its own copy of the work that they are doing?
Until that connection resumes to the server? What I want to do is
avoid loss of data if the lights go out somehow. We know that if we
are working in a word doc, and the machine unfortunately freezes or
shuts down for whatever reason, the next time we open MS Word it pops
out a file recovery dialog, and we know the rest. I want to develop
something like that with a cakephp in my web app.

If you know how, please guide me somewhere, don't just say yes you
can. Any help It would be greatly appreciated.

Check out the new CakePHP Questions site http://cakeqs.org and help others with 
their CakePHP related questions.

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+unsubscr...@googlegroups.com For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en

To unsubscribe, reply using remove me as the subject.


I want to develop an inventory system

2010-02-20 Thread Bankai
I want to develop an inventory system localized for my country
(Venezuela). I am going to need some input from anyone.

The system that I want to develop is obviously going to be developed
using cakephp + ajax, hosted on an apache server.

I want the system to have a login system, maybe using sha-1 algorithm.
I am going to need privileges for each user, according to their
needs.

The system is going to let people do some and more of the following:

- Add new products, with description, quantity, and possible an image.
- Display reports, with charts if possible (can I do that with php?),
daily, weekly, monthly, yearly, etc.
- etc.


Did I choose the right technology to do this?

Check out the new CakePHP Questions site http://cakeqs.org and help others with 
their CakePHP related questions.

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+unsubscr...@googlegroups.com For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en


Re: open $html link in new window

2009-06-20 Thread Bankai

How can you do this in a XHTML Strict environment? Target=blank doesn
´t validate.
--~--~-~--~~~---~--~~
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+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en
-~--~~~~--~~--~--~---



Re: I eliminated the default pages routing and now my controllers won't load

2009-05-11 Thread Bankai

Loboto, and how do I indicate action in the URL?

For example, I have a controller named Contact.

Router::connect('/:controller/:action/*');

Am I suppose to replace the above line to my Contact controller?

On 12 mayo, 04:01, Dr. Loboto drlob...@gmail.com wrote:
 You can try this routes set:

 Router::connect('/:controller/:action/*');
 Router::connect('/', array('controller' = 'pages', 'action' =
 'display', 'home'));
 Router::connect('/(.*)', array('controller' = 'pages', 'action' =
 'display'));

 Controllers index actions won't work still, you always need to
 indicate action in URL.

 On May 11, 12:21 am, Bankai hgnelso...@gmail.com wrote:

  I wanted my URLs to look like:www.website.com/some_content

  Instead of the cakephp default:www.website.com/pages/some_content

  So I edited the router.php to this

  Router::connect('/', array('controller' = 'pages', 'action' =
  'display', 'home'));
  #Router::connect('/pages/*', array('controller' = 'pages', 'action'
  = 'display'));
  Router::connect('/(.*)', array('controller' = 'pages', 'action' =
  'display'));

  But now my controllers are not loading. It's asking for views instead.
  Also, when I type:

  ?php e($html-link('Somelink', 'somelink')); ?
  It still puts /pages in the url. How do I get rid of it?
--~--~-~--~~~---~--~~
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+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en
-~--~~~~--~~--~--~---



I eliminated the default pages routing and now my controllers won't load

2009-05-10 Thread Bankai

I wanted my URLs to look like:
www.website.com/some_content

Instead of the cakephp default:
www.website.com/pages/some_content

So I edited the router.php to this

Router::connect('/', array('controller' = 'pages', 'action' =
'display', 'home'));
#Router::connect('/pages/*', array('controller' = 'pages', 'action'
= 'display'));
Router::connect('/(.*)', array('controller' = 'pages', 'action' =
'display'));

But now my controllers are not loading. It's asking for views instead.
Also, when I type:

?php e($html-link('Somelink', 'somelink')); ?
It still puts /pages in the url. How do I get rid of it?
--~--~-~--~~~---~--~~
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+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en
-~--~~~~--~~--~--~---



Forms - How to give an ID or class to my reset button

2009-05-03 Thread Bankai

How to give an ID to my reset button so that I can style it with CSS.

Please advise.

This is what I have:
echo $form-button('Reset', array('type'='reset'));

This is the output:
input type=reset value=Reset /

This is something like I need to style it:
input type=reset value=Reset id=resetBtn /
--~--~-~--~~~---~--~~
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+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en
-~--~~~~--~~--~--~---



Re: Forms - How to give an ID or class to my reset button

2009-05-03 Thread Bankai

Thanks!

On 4 mayo, 13:22, Bogdan I. Bursuc bogdanbursu...@gmail.com wrote:
 echo $form-button('Reset', array('type' = 'reset', 'id' =
 'resetBtn'));

 On Sun, 2009-05-03 at 11:15 -0700, Bankai wrote:
  How to give an ID to my reset button so that I can style it with CSS.

  Please advise.

  This is what I have:
  echo $form-button('Reset', array('type'='reset'));

  This is the output:
  input type=reset value=Reset /

  This is something like I need to style it:
  input type=reset value=Reset id=resetBtn /

 --
 Bogdan I. Bursuc bogdanbursu...@gmail.com
--~--~-~--~~~---~--~~
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+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en
-~--~~~~--~~--~--~---



Re: How to embed flash when using CakePHP

2009-02-23 Thread Bankai

How can I make the paths relative to the root?

I tried absolute paths in both the xhtml and xml and still doesn´t
work.


--~--~-~--~~~---~--~~
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+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en
-~--~~~~--~~--~--~---



How to embed flash when using CakePHP

2009-02-22 Thread Bankai

My flash movies are not loading in cakephp. All the files are located
in the webroot directory.
In the past I use the following (valid xhtml code) to embed flash:
!--= Flash Banner Starts HERE ===--
div id=rotator
script type=text/javascript
AC_FL_RunContent(
type,application/x-shockwave-flash,
data,media/jpgrotator.swf,
width,742px,
height,275px,
movie,media/jpgrotator,
quality,high,
wmode,transparent );
/script
noscript
div
object type=application/x-shockwave-
flash data=media/jpgrotator.swf width=742px height=275px
param name=movie value=media/
jpgrotator.swf /
param name=quality value=high /
param name=wmode
value=transparent /
/object
/div
/noscript
/div
!--= Flash Banner ENDS HERE ===--


Web URL: http://www.hld-hoteles.com/

In the body I would use the script: AC_RunActiveContent.js.
http://www.hld-hoteles.com/js/AC_RunActiveContent.js

When I run the swf directly it runs fine: 
http://www.hld-hoteles.com/media/jpgrotator.swf

I am using xml to load the images: 
http://www.hld-hoteles.com/media/jpgrotator.xml
When I right click on the banner I can tell that the flash is loading,
but the images are not showing up.
I wanna know why the images are not loading.
--~--~-~--~~~---~--~~
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+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en
-~--~~~~--~~--~--~---



How to avoid repetition with dynamic content

2009-01-18 Thread Bankai

So, I have all the html laid out.

I want to make it so that I don't have to copy and paste  all the html
every time I create a new page or change the layout in each and every
page every time I make a change in the html code.

I used to do that in the past with just plain PHP, but I want to make
it using cakephp.

I am having a hard time doing it with cakephp.

Could somebody guide me in right direction? maybe some tutorial
anywhere? I tried some Dynamic Content tutorials but it doesn't work.
--~--~-~--~~~---~--~~
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+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en
-~--~~~~--~~--~--~---



Re: How to avoid repetition with dynamic content

2009-01-18 Thread Bankai

RichardAtHome, you saved my life.

You also pointed me in the right direction because I have 2 cakephp
books and now I know where to look it up. Custom layouts.

Thanks a ton!!


--~--~-~--~~~---~--~~
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+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en
-~--~~~~--~~--~--~---



Re: Pulling dynamic content with cake 1.2 final

2009-01-15 Thread Bankai

Thanks for the routing part, but how can I accomplish something
similar to that and more secure with cakephp?



On 15 ene, 00:11, Miles J mileswjohn...@gmail.com wrote:
 Your previous  code is extremely unsecure and uses bad logic.

 If your views name is sitemap.ctp within /views/pages/, the url would
 be /pages/sitemap/.

 If you want it to just be /sitemap, you would have to do some routing.

 Router::connect('/sitemap', array('controller' = 'pages', 'action' =
 'display', 'sitemap'));

--~--~-~--~~~---~--~~
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+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en
-~--~~~~--~~--~--~---



Pulling dynamic content with cake 1.2 final

2009-01-14 Thread Bankai

I am trying to figured out how to pull content dynamically using cake
1.2.

I have my content files in the views/pages directory. All of them
with .ctp extension.

I did it on php with the following code:

? include('content/'.$GET['pg']).'.php'); ?

From the URL I would type something like:
www.domain.com/?pg=contact

How can I accomplish this on CakePHP?

--~--~-~--~~~---~--~~
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+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en
-~--~~~~--~~--~--~---