Welcome Guest, Not a member yet? Register   Sign In
  Setting up xajax on codeigniter 1.5.4 and IIS with PHP 5.2.4
Posted by: El Forum - 10-16-2007, 01:29 PM - No Replies

[eluser]CodeIgniter Fan[/eluser]
Please help me to setup xajax 0.2.5 on codeigniter 1.5.4 and IIS with PHP 5.2.4
Thanks in advance.


  Image Manipulation - Can we resize original image AND the thumbnail?
Posted by: El Forum - 10-16-2007, 12:15 PM - No Replies

[eluser]codelearn[/eluser]
Hey guys,

Does anyone know if it is possible to use the Image Manipulation class to resize the thumbnail and the original image at the same time? Right now my code will only resize the thumbnail as below:

Code:
$config['image_library'] = 'GD';
$config['source_image'] = './assets/rest_photos/'.$filename;
$config['maintain_ratio'] = TRUE;
$config['create_thumb'] = TRUE;
$config['quality'] = 100;
$config['width'] = 110;
$config['height'] = 110;
            
$this->load->library('image_lib', $config);
$this->image_lib->resize();

Thanks for any input.


  we are all the open source codeigniter modules
Posted by: El Forum - 10-16-2007, 11:11 AM - No Replies

[eluser]Sally D[/eluser]
I am looking for open source CI library's

Like shopping carts, image galleries, user registration, video gallery you know things that can easily be added to a CI site that is built on the open source concept.

Does something like this exist The open source CI Development project for the developmentally disabled.


  phptal & ci integration
Posted by: El Forum - 10-16-2007, 11:06 AM - No Replies

[eluser]Unknown[/eluser]
Can someone please give me a hint where/how to integrate phptal and ci. I am not sure I want to mess with a templating system *and* ci, but at least wanted to give it a whiz.

Thanks in advance,
Djang


  very big and monolitic controller/model vs several smaller ones
Posted by: El Forum - 10-16-2007, 10:56 AM - No Replies

[eluser]noland[/eluser]
Hi there!:

what's better to do?

i use to finish almost dead in the end of the day, after working with 15 o 20 controllers, and their respective models....

So I thought that I could use a bigger unique one (and the same with the model).

Would it be better to use one and use routing?

But I don't know it is good to use this, because controller/model file size will be increased....

This is my idea:

Code:
Central_controller
---------------------C/R/U/D controlling for table1
---------------------C/R/U/D controlling for table2
---------------------C/R/U/D controlling for table3

Central_model
---------------------C/R/U/D database operations for table1
---------------------C/R/U/D database operations for table2
---------------------C/R/U/D database operations for table3

VS

Code:
Table_1_controller
---------------------C/R/U/D controlling for table1

Table_1_model
---------------------C/R/U/D database operations for table1

Table_2_controller
---------------------C/R/U/D controlling for table2

Table_2_model
---------------------C/R/U/D database operations for table2

Table_3_controller
---------------------C/R/U/D controlling for table3

Table_3_model
---------------------C/R/U/D database operations for table3

What's the standard for that?

Thank you very much indeed!


  segments vs $_POST variables
Posted by: El Forum - 10-16-2007, 10:47 AM - No Replies

[eluser]noland[/eluser]
Hi there!:

I've searched for this particular subject, but I could not find anything which clarifies the best way to do the things.

In my 3 initial applications with CI I used to use the segment-easy to send to the somebody urls:

http://www.mydomain.com/W/segment1/segment2/segmentN

But i'm finished tired of that... I have all the time to check if the segments are ok... eventually, somebody could change the segment2 in my url to....

http://www.mydomain.com/W/segment1/xzczxczdedsr324234234/segmentN

that segment2 is incorrect, so everything crashes if I don't check it.

I think that they expose, as well, some "inner workings" of the database. Sad

So I finished comunicating the page parameters using $POST variables (that are somehow 'hidden') all the time.

I suppose that my question is really 2 questions:

What's the best system?? $POST, segments or other that I don't know??? and
Is there a better way to check all the segments (if their format is right and if their contents match againts the database???


  Routing problem to an external application
Posted by: El Forum - 10-16-2007, 08:57 AM - No Replies

[eluser]Référencement Google[/eluser]
Hi,

I've got problems with an external Webstats tool (awstats) wich have a directory at the root of the webfolder.

I use this small script to handle the static pages of the website, and this is what's look to make my problem:
http://ellislab.com/forums/viewthread/52505/#256605

So, typing this:
www.mysite.com/awstats ===> CI error 404
www.mysite.com/validcontroller ===> OK
www.mysite.com/staticpage ===> OK

Any help would be appreciated to reach my stats folder because I am getting crazy for about a day with this problem.


  a general include
Posted by: El Forum - 10-16-2007, 06:09 AM - No Replies

[eluser]dotweb[/eluser]
First of all hi everybody, second, if it is the wrong place to ask the following question, please move'it where it should.

Now, for my dilema: i need someone to explain to me how can i include, all over a website (made with CI) a header, a footer or any other block of html (but which it has a logic behind, dynamic content and such). How should i write the controller so it does include those blocks everywhere ? For each block that will be included, i think i need to make a controller (for that logic i was talking about above) ? How do i call that controller on each page in the website (page which is actually a controller by itself) ?

Thank you in advance for your patience and time to answer my questions.


  Extract email address book from yahoo....rediff....gmail
Posted by: El Forum - 10-16-2007, 05:46 AM - No Replies

[eluser]MASS MASS[/eluser]
HI I want to extract email address book from yahoo....rediff....or gmail ...

Complete Details
...................
I have an email id ie... katte_niranjan@yahoo.com


in my yahoo account .i have address book contains my friends email ids....so i have to extract all email id from yahoo address book......


how to do in code igniter..........is it possible


  Validation with database data
Posted by: El Forum - 10-16-2007, 04:21 AM - No Replies

[eluser]faceh[/eluser]
I just started using your validation class, which is extremely useful.

I have one question however. I am using a form for a customer to enter his address details in to a form, which must be validated and of course have the input data re-inserted in to the form in the case of failure.

My issue is that I originally want to fill the form with database data of his default address, and then have this data replaced if he submits.

ie. On first page load, the customers default address is grabbed from the database and the form is populated.

If he then makes changes and hits submit, but the form has errors, the form will be re-displayed with the POST data rather than database data.


Whats the best practice to achieve the above?
I can do it with lots of if's in the VIEW, but there must be a cleaner way.


Welcome, Guest
You have to register before you can post on our site.

Username
  

Password
  





Latest Threads
hot-reload side effects s...
by PaulC
3 hours ago
CRUD Code Generator
by DeanE10
5 hours ago
CodeIgniter.com - Report ...
by Harry Lyre
Yesterday, 04:26 AM
Setting baseURL in Regist...
by michalsn
Yesterday, 12:09 AM
Update from 4.6.0 to 4.6....
by FlavioSuar
05-13-2025, 04:17 AM
Sessions old files are de...
by InsiteFX
05-12-2025, 10:30 PM
Ajax post failing with Ty...
by PaulC
05-12-2025, 12:23 AM
intermittent smtp failure...
by InsiteFX
05-11-2025, 11:30 PM
MVC vs MVCS vs CodeIgnite...
by FlavioSuar
05-10-2025, 10:33 AM
CodeIgniter Shield 1.0.0 ...
by timesprayer
05-10-2025, 05:22 AM

Forum Statistics
» Members: 146,175
» Latest member: kingfunagency
» Forum threads: 78,389
» Forum posts: 379,453

Full Statistics

Search Forums

(Advanced Search)


Theme © iAndrew 2016 - Forum software by © MyBB