public function categoryHandler()
{
$fp = fopen('../web/uploads/files/test.csv', 'r');
$newCats = fopen('../web/uploads/files/cats.csv', 'w');
$key = 0;
$prevCat = [];
while ($data[] = fgetcsv($fp,0,';'))
{
$prevCat = explode('/', $data[$key][1]);
$curCat = explode('/', $data[$key][1]);
if ()
{
}
$key++;
}
}
public function categoryHandler()
{
$fp = fopen('../web/uploads/files/test.csv', 'r');
$newCats = fopen('../web/uploads/files/cats.csv', 'w');
while ($data = fgetcsv($fp,0,';'))
{
$lines[] = $data;
}
foreach ($lines as $k => $v)
{
$cat = $v[1]; // в $cat запоминаю строку с категориями
// тут надо написать условие
}
}
$(document).ready(function($) {
$('.topmenu__auth-sighup').click(function() {
$('.topmenu__modal-signup-fade').fadeIn();
return false;
});
});